Skip to content

Commit 98953f7

Browse files
committed
Prepare for work on v2.7.3b2.
1 parent da3bfb3 commit 98953f7

File tree

3 files changed

+98
-78
lines changed

3 files changed

+98
-78
lines changed

NEWS

+96-76
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,47 @@
11
Jython NEWS
22

3-
The features new in a given release are generally listed under the section for the "b1" release
4-
of that version.
3+
The features new in a given version are listed at the head of the section for
4+
the final release of that version. Bugs fixed are listed under the next release
5+
(frequently a beta) after they were fixed.
56

67
For more details, three sources are available according to type:
78
- [ n ], please see old bug tracker at https://bugs.jython.org.
89
- [ GH-n ], please see https://github.com/jython/jython.
910
- [ FM-n ], please see https://github.com/jython/frozen-mirror.
1011

12+
==============================================================================
13+
Jython 2.7.3
14+
==============================================================================
1115

12-
Jython 2.7.3b1
13-
Bugs fixed
16+
New Features
17+
18+
- The jython command respects the PYTHONDONTWRITEBYTECODE environment
19+
variable (GH-128).
20+
21+
- Under PR GH-101, the matching of sequence arguments to the parameters of
22+
Java methods is improved. A Java varargs parameter does not match a final
23+
sequence in the call if an array parameter could do so. (Thanks Peter
24+
Holloway.)
25+
26+
- array.array itemsize of unsigned types is now the same as their signed
27+
counterparts, where previously it was mostly double. Internal
28+
representations have changed. Anomalies have been eliminated between
29+
itemsize and the serialisation (tostring() etc.) for unsigned types, and
30+
in the range of values accepted in different contexts. The size of type
31+
'u' (unicode character) is 4 on all platforms. Client code that was
32+
working around these anomalies may have to change. Overall, the
33+
experience should be closer to that with CPython.
34+
35+
- We no longer aspire to compile Jython with Java 7. (We may use Java 8
36+
features.)
37+
38+
- The project has moved its home to GitHub (twice).
39+
40+
41+
Jython 2.7.3b2-DEV Bugs fixed
42+
- [ GH- ]
43+
44+
Jython 2.7.3b1 Bugs fixed
1445
- [ GH-192 ] PyString with non-byte value in formatting of collections
1546
- [ GH-183 ] Console messages do not reach root logger (bjo 2896)
1647
- [ GH-178 ] Update icu4j JAR to 71.1
@@ -51,36 +82,66 @@ Jython 2.7.3b1
5182
- [ 2918 ] slim jar: missing resource file for zxJDBC (also GH-187)
5283
- [ 2892 ] Migrate from hg.python.org to GitHub
5384

54-
New Features
55-
56-
- The jython command respects the PYTHONDONTWRITEBYTECODE environment variable (GH-128).
57-
58-
- Under PR GH-101, the matching of sequence arguments to the parameters of Java methods is
59-
improved. A Java varargs parameter does not match a final sequence in the call
60-
if an array parameter could do so. (Thanks Peter Holloway.)
61-
62-
- array.array itemsize of unsigned types is now the same as their signed counterparts, where
63-
previously it was mostly double. Internal representations have changed. Anomalies have been
64-
eliminated between itemsize and the serialisation (tostring() etc.) for unsigned types,
65-
and in the range of values accepted in different contexts. The size of type 'u' (unicode
66-
character) is 4 on all platforms. Client code that was working around these anomalies may
67-
have to change. Overall, the experience should be closer to that with CPython.
68-
69-
- We no longer aspire to compile Jython with Java 7. (We may use Java 8 features.)
70-
71-
- The project has moved its home to GitHub (twice).
7285

86+
==============================================================================
7387
Jython 2.7.2
74-
same as 2.7.2rc1
88+
==============================================================================
7589

76-
Jython 2.7.2rc1
77-
Bugs fixed
90+
New Features
91+
- The main program behaves more like CPython in many small ways, including
92+
a more correct treatment of the -i option. This simplifies support, and
93+
may also make it unnecessary for users to work around differences from
94+
CPython.
95+
- python.startup registry property (and JYTHONSTARTUP environment variable)
96+
added.
97+
- Only the Jython command (class org.python.util.jython) now reads the
98+
environment variable JYTHONPATH, not the core runtime, and it respects
99+
the -E option (ignore environment). This change is for consistency with
100+
CPython and with our handling of other environment variables. A pure Java
101+
application that creates its own interpreter may use the system or
102+
registry key "python.path" to add to sys.path, as documented.
103+
- We no longer recommend overriding toString in PyObject sub-classes as a
104+
way of defining string forms. Override __repr__, and if necessary __str__,
105+
as is usual in Python. We recommend toString should return the same as
106+
__str__ (or __unicode__).
107+
- Experimentally, we use Gradle to build a JAR and POM that may be cited as
108+
a dependency by other projects. The Jython project would like to know if
109+
this is being done suitably for downstream use.
110+
- The registry setting (or Java property) "python.verbose", and direct use
111+
of the global org.python.core.Options.verbose are DEPRECATED: use a Java
112+
logging properties file instead. Console messages are now produced via
113+
java.util.logging (JUL), and the logger "org.python" or its descendants.
114+
The jython command configures a ConsoleLogger for "org.python" and by
115+
default a format for messages generally similar to that in v2.7.1,
116+
preceded by the logger name and JUL severity. The volume of messages is
117+
controlled by your logging preferences, but by default is unchanged from
118+
v2.7.1. Each -v option on the command line makes the logging one step
119+
finer on the JUL scale. Error messages from Python and stack traces are
120+
unaffected. When embedded in your application, Jython makes no logging
121+
configuration changes: messages from the "org.python" name space merge
122+
with those of your application.
123+
- There is much improved support for locale, but as a backward-incompatible
124+
change, it is provided as an opt-in. Define property
125+
python.locale.control=settable on the command line or via the Jython
126+
registry, to enable. This may become the default in a later version.
127+
- The default location of the Jython package cache has moved from the
128+
installation directory to the current working directory and is called
129+
".jython_cache". Previously, Jython installed system-wide either exposed
130+
the cache as world read-write (a security risk) or disabled it.
131+
- BouncyCastle SSL support is incomplete as bundled. The Jython JAR is not
132+
signed, and may not be trusted by your JVM as a security provider. This
133+
manifests as a PEMException: "Unable to create OpenSSL PBDKF:
134+
PBKDF-OpenSSL SecretKeyFactory not available" during certain operations.
135+
If this is a problem, place genuine BouncyCastle JARs on the class path,
136+
and Jython will use those in preference to the classes we include.
137+
The slim JAR does not suffer this problem.
138+
139+
Jython 2.7.2rc1 Bugs fixed
78140
- [ 2858 ] test_ssl failure due to embedding Bouncy Castle (doc change only)
79141
- [ FM-156 ] Race condition in PyStringMap keys method
80142
- [ 2862 ] Jython fails on Linux for normal user when installed by root
81143

82-
Jython 2.7.2b3
83-
Bugs fixed
144+
Jython 2.7.2b3 Bugs fixed
84145
- [ 2810 ] NoSuchMethodError in test_jython_initializer (Java 10+)
85146
- [ 2808 ] lib2to3 test failures on Windows JDK 11
86147
- [ 2846 ] Main module __name __ is not "__main__" under Java Scripting API
@@ -91,12 +152,10 @@ Jython 2.7.2b3
91152
- [ 2826 ] Unicode hex string decode failure
92153
- [ 2836 ] Java Swing library works only in interactive jython session
93154

94-
Jython 2.7.2b2
95-
Bugs fixed
155+
Jython 2.7.2b2 Bugs fixed
96156
- [ 2814 ] maven/build.xml does not PGP-sign the publication
97-
2)
98-
Jython 2.7.2b1
99-
Bugs fixed
157+
158+
Jython 2.7.2b1 Bugs fixed
100159
- [ 2806 ] Installer contains dependencies unshaded (Java 8)
101160
- [ 2666 ] Oracle JDK 7 out of support so no longer available on Travis
102161
- [ 2294 ] Importation of modules from directories with non-ASCII characters fails
@@ -162,46 +221,7 @@ Jython 2.7.2b1
162221
- [ 2403 ] VerifyError when implementing interfaces containing default methods (Java 8)
163222
- [ 2715 ] Restrict array.array support for buffer protocol
164223

165-
New Features
166-
- The main program behaves more like CPython in many small ways, including a more correct
167-
treatment of the -i option. This simplifies support, and may also make it unnecessary for
168-
users to work around differences from CPython.
169-
- python.startup registry property (and JYTHONSTARTUP environment variable) added.
170-
- Only the Jython command (class org.python.util.jython) now reads the environment variable
171-
JYTHONPATH, not the core runtime, and it respects the -E option (ignore environment). This
172-
change is for consistency with CPython and with our handling of other environment variables.
173-
A pure Java application that creates its own interpreter may use the system or registry
174-
key "python.path" to add to sys.path, as documented.
175-
- We no longer recommend overriding toString in PyObject sub-classes as a way of defining
176-
string forms. Override __repr__, and if necessary __str__, as is usual in Python. We
177-
recommend toString should return the same as __str__ (or __unicode__).
178-
- Experimentally, we use Gradle to build a JAR and POM that may be cited as a dependency by
179-
other projects. The Jython project would like to know if this is being done suitably
180-
for downstream use.
181-
- The registry setting (or Java property) "python.verbose", and direct use of the global
182-
org.python.core.Options.verbose are DEPRECATED: use a Java logging properties file instead.
183-
Console messages are now produced via java.util.logging (JUL), and the logger "org.python"
184-
or its descendants. The jython command configures a ConsoleLogger for "org.python" and by
185-
default a format for messages generally similar to that in v2.7.1, preceded by the logger
186-
name and JUL severity. The volume of messages is controlled by your logging preferences, but
187-
by default is unchanged from v2.7.1. Each -v option on the command line makes the logging
188-
one step finer on the JUL scale. Error messages from Python and stack traces are unaffected.
189-
When embedded in your application, Jython makes no logging configuration changes: messages
190-
from the "org.python" name space merge with those of your application.
191-
- There is much improved support for locale, but as a backward-incompatible change, it is
192-
provided as an opt-in. Define property python.locale.control=settable on the command line
193-
or via the Jython registry, to enable. This may become the default in a later version.
194-
- The default location of the Jython package cache has moved from the installation directory
195-
to the current working directory and is called ".jython_cache". Previously, Jython installed
196-
system-wide either exposed the cache as world read-write (a security risk) or disabled it.
197-
- BouncyCastle SSL support is incomplete as bundled. The Jython JAR is not signed, and may not
198-
be trusted by your JVM as a security provider. This manifests as a PEMException: "Unable to
199-
create OpenSSL PBDKF: PBKDF-OpenSSL SecretKeyFactory not available" during certain
200-
operations. If this is a problem, place genuine BouncyCastle JARs on the class path, and
201-
Jython will use those in preference to the classes we include. The slim JAR is not affected.
202-
203-
Jython 2.7.2a1
204-
Bugs fixed
224+
Jython 2.7.2a1 Bugs fixed
205225
- [ 2632 ] Handle unicode data appropriately in csv module
206226
- [ 2638 ] str not default-decoded in str-unicode operations
207227
- [ 2622 ] json dumps error (use of AbstractDict)
@@ -213,11 +233,10 @@ Jython 2.7.2a1
213233
- [ 2600 ] subprocess doesn't have _args_from_interpreter_flags (blocks support for multiprocessing)
214234
- [ 2602 ] NumberFormatException in terminal on OSX 10.12.5 (ncurses related)
215235

216-
New Features
217-
- Updated JLine to 2.14.5
218236

237+
==============================================================================
219238
Jython 2.7.1
220-
same as 2.7.1rc3
239+
==============================================================================
221240

222241
Jython 2.7.1rc3
223242
Bugs fixed
@@ -432,8 +451,9 @@ Jython 2.7.1b1
432451
- [ 2058 ] ClasspathPyImporter implements PEP 302 get_data (and others)
433452
- [ 2364 ] bytearray and str: isalpha(), isupper() etc. now match Python 2
434453

454+
==============================================================================
435455
Jython 2.7
436-
same as 2.7rc3
456+
==============================================================================
437457

438458
Jython 2.7rc3
439459
Bugs fixed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import java.text.SimpleDateFormat
4545
// Versions are specified in this grammar:
4646
// <major> . <minor> ( . <micro> )? ( <release> <serial> )? ( - <word> )?
4747

48-
version = '2.7.3b1'
48+
version = '2.7.3b2'
4949

5050
// Valid examples (please preserve in comments):
5151
//version = '2.7.2a2'

build.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ informix.jar = ../support/jdbc-4.10.12.jar
105105
<property name="jython.release_level" value="${PY_RELEASE_LEVEL_BETA}"/>
106106

107107
<!-- Zero at full release: one-up number for alpha, beta and candidate versions. -->
108-
<property name="jython.release_serial" value="1"/>
108+
<property name="jython.release_serial" value="2"/>
109109
</target>
110110

111111
<target name="common-constants">

0 commit comments

Comments
 (0)