summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-03-16 18:19:33 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-03-16 18:19:33 (GMT)
commitfe69139f7e960c52aab54e2b6b1026ced68024d4 (patch)
tree802fdfb9b3913f6d0b5b308334b6e6d76775a5e6 /Misc
parent13510e7afb849e7b934fdc946ca38738ed4ea4c4 (diff)
downloadcpython-fe69139f7e960c52aab54e2b6b1026ced68024d4.zip
cpython-fe69139f7e960c52aab54e2b6b1026ced68024d4.tar.gz
cpython-fe69139f7e960c52aab54e2b6b1026ced68024d4.tar.bz2
Backport Tim's work on getting file.truncate working better on Win32.
"cvs diff | patch" managed to stick the NEWS item in the 2.2 final section! I wonder which silly man wrote patch <wink>.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS12
1 files changed, 12 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d88c266..3f941c4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -4,6 +4,12 @@ Release date: XXX
Core and builtins
+- If you try to pickle an instance of a class that has __slots__ but
+ doesn't define or override __getstate__, a TypeError is now raised.
+ This is done by adding a bozo __getstate__ to the class that always
+ raises TypeError. (Before, this would appear to be pickled, but the
+ state of the slots would be lost.)
+
- PyErr_Display will provide file and line information for all exceptions
that have an attribute print_file_and_line, not just SyntaxErrors. This
fixes the bug that no proper line number is given for bad \x escapes.
@@ -21,6 +27,12 @@ Library
arbitrary shell code can't be executed because a bogus URL was
passed in.
+Windows
+
+- file.truncate([newsize]) now works on Windows for all newsize values.
+ It used to fail if newsize didn't fit in 32 bits, reflecting a
+ limitation of MS _chsize (which is no longer used).
+
What's New in Python 2.2 final?
Release date: 21-Dec-2001
===============================