Skip to content

Commit 1b61859

Browse files
committed
partial list of changes between 2.0b1 and 2.0b2
1 parent 15f5e2a commit 1b61859

1 file changed

Lines changed: 165 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 165 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
What's New in Python 2.0b1?
1+
What's New in Python 2.0b2?
22
===========================
33

44
Below is a list of all relevant changes since release 1.6. Older
@@ -14,6 +14,170 @@ http://starship.python.net/crew/amk/python/writing/new-python/.
1414

1515
======================================================================
1616

17+
18+
What's new in 2.0 beta 2 (since beta 1)?
19+
========================================
20+
21+
Core language, builtins, and interpreter
22+
23+
- Add support for unbounded ints in %d,i,y,x,X,o formats for string
24+
inter
25+
26+
- Add -h and -V flags to print the usage message and Python version
27+
number and exit immediately.polation.
28+
29+
Standard library and extensions
30+
31+
- array: reverse method of array now works. buffer_info now does
32+
argument checking; it still takes no arguments.
33+
34+
- asyncore/asynchat: included most recent version from Sam Rushing
35+
36+
- cgi: accept & or ; as separate characters when parsing form data
37+
38+
- CGIHTTPServer: now works on Windows (and perhaps even Mac).
39+
40+
- ConfigParser: When reading the file, options spelled in upper case
41+
letters are now accessible.
42+
43+
- copy: Copy Unicode objects atomically.
44+
45+
- cPickle: fails gracefully when copy_reg can't be imported
46+
47+
- cStringIO: implemented readlines method.
48+
49+
- dbm: Add set and setdefault methods to dbm object. Add constant
50+
library to module that names the library used. Better doc strings
51+
and argument checking. Uses configure to determine which ndbm.h
52+
file to include; Berkeley DB's nbdm is now an option.
53+
54+
- distutils: Update to version 0.9.3.
55+
56+
- dl: Add several dl.RTLD_ constants.
57+
58+
- fpectl: Now supported on FreeBSD.
59+
60+
- gc: Add DEBUG_SAVEALL option. When enabled all garbage objects
61+
found by the collector will be saved in gc.garbage. This is useful
62+
for debugging a program that creates reference cycles.
63+
64+
- httplib: Three changes. Restore support for set_debuglevel feature
65+
of HTTP class. Do not close socket on zero-length response. Do not
66+
crash when server sends invalid content-length header.
67+
68+
- mailbox: XXX conformance to maildir specification ???
69+
70+
- operator: Add contains, invert, __invert__ as aliases for
71+
__contains__, inv, and __inv__ respectively.
72+
73+
- os: Add support for popen2 and popen3 on all platforms where fork
74+
exists.
75+
76+
- os: (Windows only) Add startfile function athat exposes part of
77+
Win32 ShellExecute functionality.
78+
79+
- os.path: (NT, DOS) Treat trailing colon correctly in os.path.join.
80+
os.path.join("a:", "b") yields "a:b".
81+
82+
- pickle: Now raises ValueError when an invalid pickle that contains
83+
a non-string repr where a string repr was expected. This behavior
84+
matches cPickle.
85+
86+
- posixfile: XXX remove __del__ method ???
87+
88+
- py_compile: support \r in source file
89+
90+
- readline: Does not immediately exit when ^C is hit when readline and
91+
threads are configured. Adds defintion of rl_library_version.
92+
93+
- rfc822: Domain literals returned by AddrlistClass method
94+
getdomainliteral are now properly wrapped in brackets.
95+
96+
- site: sys.setdefaultencoding() should only be called in case the
97+
standard default encoding ("ascii") is changed. This safes quite a
98+
few cycles during startup since the first call to
99+
setdefaultencoding() will initialize the codec registry and the
100+
encodings package.
101+
102+
- socket: Support for size hint in readlines method of object returned
103+
by makefile.
104+
105+
- sre: Added experimental expand method to match objects. Does not
106+
user buffer interface on Unicode strings. Does not hang if group id
107+
is followed by whitespace.
108+
109+
- StringIO: size hint in readlines is now supported as documented.
110+
111+
- struct: Check ranges for bytes and shorts.
112+
113+
- urllib: Improved handling of win32 proxy settings. Fixed quote and
114+
quote_plus functions so that the always encode a comma ','.
115+
116+
- Tkinter: Image objects are now guaranteed to have unique ids. Set
117+
event.delta to zero if Tk version doesn't support mousewheel.
118+
Removed some debugging prints.
119+
120+
- UserList: now implements __contains__.
121+
122+
- webbrower: On Windows, use os.startfile instead of os.popen, which
123+
works around a bug in certain versions of Norton AntiVirus that
124+
leads directly to a Blue Screen.
125+
126+
- xml: New version detection code allows PyXML to override standard
127+
XML package if PyXML version is greater than 0.6.1.
128+
129+
- xml.dom: XXX
130+
131+
- xml.sax: XXX
132+
133+
- XXX pyexpat: XXX
134+
135+
C API
136+
137+
- Add three new convenience functions for module initialization --
138+
PyModule_AddObject(), PyModule_AddIntConstant(), and
139+
PyModule_AddStringConstant().
140+
141+
- Cleaned up definition of NULL in C source code; all defintions were
142+
removed and add #error to Python.h if NULL isn't defined after
143+
#include of stdio.h.
144+
145+
- Py_PROTO macros that were removed in 2.0b1 have been restored for
146+
backwards compatibility (at the source level) with old extensions.
147+
148+
- XXX PyOS_sighandler_t, PyOS_getsig, PyOS_setsig
149+
150+
- Add PyString_AsStringAndSize call that provides access to the
151+
internal data buffer and size of a string object -- or the default
152+
encoded version of a Unicode object.
153+
154+
Internals
155+
156+
- On Unix, fix code for finding Python installation directory so that
157+
it works when argv[0] is a relative path.
158+
159+
- Added a true unicode_internal_encode function and fixed the
160+
unicode_internal_decode function to support Unicode objects directly
161+
rather than by generating a copy of the object.
162+
163+
- XXX Unicode database compression
164+
165+
Build and platform-specific issues
166+
167+
- Better support of GNU Pth via --with-pth configure option.
168+
169+
- Fix linker problems on Reliant UNIX
170+
171+
- Changes for the benefit of SunOS 4.1.4 (really!). mmapmodule.c:
172+
Don't define MS_SYNC to be zero when it is undefined. Added missing
173+
prototypes in posixmodule.c.
174+
175+
- Improved support for HP-UX build
176+
177+
178+
What's new in 2.0 beta 1?
179+
=========================
180+
17181
Source Incompatibilities
18182
------------------------
19183

0 commit comments

Comments
 (0)