Merging 2.2a3 branch changes back into trunk

This commit is contained in:
Barry Warsaw 2001-09-07 18:13:44 +00:00
parent a3689fe786
commit d6c8ca6536

View file

@ -37,14 +37,16 @@ Core
- A new command line option, -Q<arg>, is added to control run-time - A new command line option, -Q<arg>, is added to control run-time
warnings for the use of classic division. (See PEP 238.) Possible warnings for the use of classic division. (See PEP 238.) Possible
values are -Qold, -Qwarn, and -Qnew. The default is -Qold, meaning values are -Qold, -Qwarn, -Qwarnall, and -Qnew. The default is
the / operator has its classic meaning and no warnings are issued. -Qold, meaning the / operator has its classic meaning and no
Using -Qwarn issues a run-time warning about all uses of classic warnings are issued. Using -Qwarn issues a run-time warning about
division for int, long, float and complex arguments. Using -Qnew is all uses of classic division for int and long arguments; -Qwarnall
questionable; it turns on new division by default, but only in the also warns about classic division for float and complex arguments
__main__ module. You can usefully combine -Qwarn and -Qnew: this (for use with fixdiv.py). Using -Qnew is questionable; it turns on
gives the __main__ module new division, and warns about classic new division by default, but only in the __main__ module. You can
division everywhere else. usefully combine -Qwarn or -Qwarnall and -Qnew: this gives the
__main__ module new division, and warns about classic division
everywhere else.
- Many built-in types can now be subclassed. This applies to int, - Many built-in types can now be subclassed. This applies to int,
long, float, str, unicode, and tuple. (The types complex, list and long, float, str, unicode, and tuple. (The types complex, list and
@ -114,8 +116,16 @@ Library
Tools Tools
- Tools/scripts/fixdiv.py has been added which can be used to fix
division operators as per PEP 238.
Build Build
- If you are an adventurous person using Mac OS X you may want to look at
Mac/OSX. There is a Makefile there that will build Python as a real Mac
application, which can be used for experimenting with Carbon or Cocoa.
Discussion of this on pythonmac-sig, please.
C API C API
- New function PyObject_Dir(obj), like Python __builtin__.dir(obj). - New function PyObject_Dir(obj), like Python __builtin__.dir(obj).