Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 012852b

Browse files
committed
Merged in NEWS changes from the r22b2 branch.
1 parent 666ca80 commit 012852b

1 file changed

Lines changed: 57 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Core and builtins
3939

4040
- Assignment to __debug__ raises SyntaxError at compile-time. This
4141
was promised when 2.1c1 was released as "What's New in Python 2.1c1"
42-
(below) says.
42+
(see below) says.
4343

4444
- Clarified the error messages for unsupported operands to an operator
4545
(like 1 + '').
@@ -78,8 +78,12 @@ Library
7878
- Symbolic group names in regular expressions must be unique. For
7979
example, the regexp r'(?P<abc>)(?P<abc>)' is not allowed, because a
8080
single name can't mean both "group 1" and "group 2" simultaneously.
81-
Python 2.2 detects this error at regexp compilation time; previously,
82-
the error went undetected, and results were unpredictable.
81+
Python 2.2 detects this error at regexp compilation time;
82+
previously, the error went undetected, and results were
83+
unpredictable. Also in sre, the pattern.split(), pattern.sub(), and
84+
pattern.subn() methods have been rewritten in C. Also, an
85+
experimental function/method finditer() has been added, which works
86+
like findall() but returns an iterator.
8387

8488
- Tix exposes more commands through the classes DirSelectBox,
8589
DirSelectDialog, ListNoteBook, Meter, CheckList, and the
@@ -95,16 +99,53 @@ Library
9599
RISCOS, where it is '/'. There is no need to use this variable
96100
unless you have a masochistic desire to port your code to RISCOS.
97101

102+
- mimetypes.py has optional support for non-standard, but commonly
103+
found types. guess_type() and guess_extension() now accept an
104+
optional `strict' flag, defaulting to true, which controls whether
105+
recognize non-standard types or not. A few non-standard types we
106+
know about have been added. Also, when run as a script, there are
107+
new -l and -e options.
108+
109+
- statcache is now deprecated.
110+
111+
- email.Utils.formatdate() now produces the preferred RFC 2822 style
112+
dates with numeric timezones (it used to produce obsolete dates
113+
hard coded to "GMT" timezone). An optional `localtime' flag is
114+
added to produce dates in the local timezone, with daylight savings
115+
time properly taken into account.
116+
117+
- In pickle and cPickle, instead of masking errors in load() by
118+
transforming them into SystemError, we let the original exception
119+
propagate out. Also, implement support for __safe_for_unpickling__
120+
in pickle, as it already was supported in cPickle.
121+
98122
Tools/Demos
99123

100124
Build
101125

126+
- The dbm module is built using libdb1 if available. The bsddb module
127+
is built with libdb3 if available.
128+
129+
- Misc/Makefile.pre.in has been removed by BDFL pronouncement.
130+
102131
C API
103132

104133
- New function PySequence_Fast_GET_SIZE() returns the size of a non-
105134
NULL result from PySequence_Fast(), more quickly than calling
106135
PySequence_Size().
107136

137+
- New argument unpacking function PyArg_UnpackTuple() added.
138+
139+
- New functions PyObject_CallFunctionObjArgs() and
140+
PyObject_CallMethodObjArgs() have been added to make it more
141+
convenient and efficient to call functions and methods from C.
142+
143+
- PyArg_ParseTupleAndKeywords() no longer masks errors, so it's
144+
possible that this will propagate errors it didn't before.
145+
146+
- New function PyObject_CheckReadBuffer(), which returns true if its
147+
argument supports the single-segment readable buffer interface.
148+
108149
New platforms
109150

110151
- We've finally confirmed that this release builds on HP-UX 11.00,
@@ -122,6 +163,19 @@ Tests
122163

123164
Windows
124165

166+
Mac
167+
168+
- PythonScript has been moved to unsupported and is slated to be
169+
removed completely in the next release.
170+
171+
- It should now be possible to build applets that work on both OS9 and
172+
OSX.
173+
174+
- The core is now linked with CoreServices not Carbon; as a side
175+
result, default 8bit encoding on OSX is now ASCII.
176+
177+
- Python should now build on OSX 10.1.1
178+
125179

126180
What's New in Python 2.2b1?
127181
Release date: 19-Oct-2001

0 commit comments

Comments
 (0)