summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-10-19 05:35:40 (GMT)
committerBarry Warsaw <barry@python.org>2001-10-19 05:35:40 (GMT)
commitf6fb171c9d6c0232937518dc00d3d31baeaf84c8 (patch)
tree969045b472cd54bbc7852109cb8f665788c3c0ca
parente736d93eab79d7bcda3f47df7ab41c7b413e2a26 (diff)
downloadcpython-f6fb171c9d6c0232937518dc00d3d31baeaf84c8.zip
cpython-f6fb171c9d6c0232937518dc00d3d31baeaf84c8.tar.gz
cpython-f6fb171c9d6c0232937518dc00d3d31baeaf84c8.tar.bz2
Last minute updates for changes since 2.2a4. Unless Fred wants to add
anything about the hotshot profiler, this file is ready for the 2.2b1 Windows build.
-rw-r--r--Misc/NEWS39
1 files changed, 37 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index fdb44001..b7ea28c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -38,13 +38,25 @@ Core and builtins
- Weak reference objects are now part of the core and offers a C API.
A bug which could allow a core dump when binary operations involved
- proxy reference has been fixed.
+ proxy reference has been fixed. weekref.ReferenceError is now a
+ built-in exception.
- unicode(obj) now behaves more like str(obj), accepting arbitrary
objects, and calling a __unicode__ method if it exists.
unicode(obj, encoding) and unicode(obj, encoding, errors) still
require an 8-bit string argument.
+- isinstance() now allows any object as the first argument and a
+ class, a type or something with a __bases__ tuple attribute for the
+ second argument. The second argument may also be a tuple of a
+ class, type, or something with __bases__, in which case isinstance()
+ will return true if the first argument is an instance of any of the
+ things contained in the second argument tuple. E.g.
+
+ isinstance(x, (A, B))
+
+ returns true if x is an instance of A or B.
+
Extension modules
- thread.start_new_thread() now returns the thread ID (previously None).
@@ -73,7 +85,11 @@ Extension modules
- optional SSL support in the socket module now exports OpenSSL
functions RAND_add(), RAND_egd(), and RAND_status(). These calls
are useful on platforms like Solaris where OpenSSL does not
- automatically seed its PRNG.
+ automatically seed its PRNG. Also, the keyfile and certfile
+ arguments to socket.ssl() are now optional.
+
+- posixmodule (and by extension, the os module on POSIX platforms) now
+ exports O_LARGEFILE, O_DIRECT, O_DIRECTORY, and O_NOFOLLOW.
Library
@@ -114,14 +130,33 @@ Library
- The SocketServer.ThreadingMixIn class now closes the request after
finish_request() returns. (Not when it errors out though.)
+- The nntplib module's NNTP.body() method has grown a `file' argument
+ to allow saving the message body to a file.
+
+- The email package has added a class email.Parser.HeaderParser which
+ only parses headers and does not recurse into the message's body.
+ Also, the module/class MIMEAudio has been added for representing
+ audio data (contributed by Anthony Baxter).
+
+- ftplib should be able to handle files > 2GB.
+
+- ConfigParser.getboolean() now also interprets TRUE, FALSE, YES, NO,
+ ON, and OFF.
+
Tools/Demos
- Demo/dns was removed. It no longer serves any purpose; a package
derived from it is now maintained by Anthony Baxter, see
http://PyDNS.SourceForge.net.
+- The freeze tool has been made more robust, and two new options have
+ been added: -X and -E.
+
Build
+- configure will use CXX in LINKCC if CXX is used to build main() and
+ the system requires to link a C++ main using the C++ compiler.
+
C API
- The documentation for the tp_compare slot is updated to require that