[Python-checkins] CVS: python/dist/src/Misc NEWS,1.65,1.66
Jeremy Hylton
python-dev@python.org
Tue, 26 Sep 2000 09:31:33 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19334/Misc
Modified Files:
NEWS
Log Message:
The rest of the news for 2.0b2
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -r1.65 -r1.66
*** NEWS 2000/09/26 16:21:35 1.65
--- NEWS 2000/09/26 16:31:30 1.66
***************
*** 19,23 ****
========================================
-
Core language, builtins, and interpreter
--- 19,22 ----
***************
*** 28,32 ****
--- 27,44 ----
Python version number and exit immediately.
+ - eval() and exec accept Unicode objects as code parameters.
+
+ - getattr() and setattr() now also accept Unicode objects for the
+ attribute name, which are converted to strings using the default
+ encoding before lookup.
+
+ - Multiplication on string and Unicode now does proper bounds
+ checking; e.g. 'a' * 65536 * 65536 will raise ValueError, "repeated
+ string is too long."
+
+ - Better error message when continue is found in try statement in a
+ loop.
+
Standard library and extensions
***************
*** 70,73 ****
--- 82,90 ----
- mailbox: Mailbox class conforms better to qmail specifications.
+ - marshal: When reading a short, sign-extend on platforms where shorts
+ are bigger than 16 bits. When reading a long, repair the unportable
+ sign extension that was being done for 64-bit machines. (It assumed
+ that signed right shift sign-extends.)
+
- operator: Add contains(), invert(), __invert__() as aliases for
__contains__(), inv(), and __inv__() respectively.
***************
*** 92,96 ****
- readline: Does not immediately exit when ^C is hit when readline and
! threads are configured. Adds defintion of rl_library_version. (The
latter addition requires GNU readline 2.2 or later.)
--- 109,113 ----
- readline: Does not immediately exit when ^C is hit when readline and
! threads are configured. Adds definition of rl_library_version. (The
latter addition requires GNU readline 2.2 or later.)
***************
*** 151,155 ****
PyModule_AddStringConstant().
! - Cleaned up definition of NULL in C source code; all defintions were
removed and add #error to Python.h if NULL isn't defined after
#include of stdio.h.
--- 168,172 ----
PyModule_AddStringConstant().
! - Cleaned up definition of NULL in C source code; all definitions were
removed and add #error to Python.h if NULL isn't defined after
#include of stdio.h.
***************
*** 167,175 ****
--- 184,210 ----
encoded version of a Unicode object.
+ - PyString_Size() and PyString_AsString() accept Unicode objects.
+
- The standard header <limits.h> is now included by Python.h (if it
exists). INT_MAX and LONG_MAX will always be defined, even if
<limits.h> is not available.
+ - PyFloat_FromString takes a second argument, pend, that was
+ effectively useless. It is now officially useless but preserved for
+ backwards compatibility. If the pend argument is not NULL, *pend is
+ set to NULL.
+
+ - PyObject_GetAttr() and PyObject_SetAttr() now accept Unicode objects
+ for the attribute name. See note on getattr() above.
+
+ - A few bug fixes to argument processing for Unicode.
+ PyArg_ParseTupleAndKeywords() now accepts "es#" and "es".
+ PyArg_Parse() special cases "s#" for Unicode objects; it returns a
+ pointer to the default encoded string data instead of to the raw
+ UTF-16.
+ - Py_BuildValue accepts B format (for bgen-generated code).
+
+
Internals
***************
*** 177,181 ****
it works when argv[0] is a relative path.
! - Added a true unicode_internal_encode() function and fixed the
unicode_internal_decode function() to support Unicode objects directly
rather than by generating a copy of the object.
--- 212,216 ----
it works when argv[0] is a relative path.
! - Added a true tnicode_internal_encode() function and fixed the
unicode_internal_decode function() to support Unicode objects directly
rather than by generating a copy of the object.
***************
*** 184,193 ****
the source code should be much friendlier to weaker compilers.
Build and platform-specific issues
- Better support of GNU Pth via --with-pth configure option.
! - Fix linker problems on Reliant UNIX.
- Changes for the benefit of SunOS 4.1.4 (really!). mmapmodule.c:
--- 219,244 ----
the source code should be much friendlier to weaker compilers.
+ - Fixed GC bug that caused some instances to be removed from the
+ container set while they were still live.
+
+ - Fixed refcount problem in instance deallocation that only occurred
+ when Py_REF_DEBUG was defined and Py_TRACE_REFS was not.
+
+ - In the garbage collector: No longer sets an object's type slot to
+ NULL. Fix bug in collection of tuples.
+
+ - On Windows, getpythonregpath is now protected against null data in
+ registry key.
+ - On Unix, create .pyc/.pyo files with O_EXCL flag to avoid a race
+ condition.
+
+
Build and platform-specific issues
- Better support of GNU Pth via --with-pth configure option.
! - Python/C API now properly exposed to dynamically-loaded extension
! modules on Reliant UNIX.
- Changes for the benefit of SunOS 4.1.4 (really!). mmapmodule.c:
***************
*** 195,203 ****
prototypes in posixmodule.c.
! - Improved support for HP-UX build -- threads should now be correctly
configured (on HP-UX 10.20 and 11.00).
! - Python/C API now properly exposed to dynamically-loaded extension
! modules on Reliant UNIX.
--- 246,267 ----
prototypes in posixmodule.c.
! - Improved support for HP-UX build. Threads should now be correctly
configured (on HP-UX 10.20 and 11.00).
! - Fix largefile support on older NetBSD systems and OpenBSD by adding
! define for TELL64.
!
!
! Tools and other miscellany
!
! - ftpmirror: Call to main() is wrapped in if __name__ == "__main__".
!
! - freeze: The modulefinder now works with 2.0 opcodes.
!
! - IDLE:
! Move hackery of sys.argv until after the Tk instance has been
! created, which allows the application-specific Tkinter
! initialization to be executed if present; also pass an explicit
! className parameter to the Tk() constructor.