diff options
author | Barry Warsaw <barry@python.org> | 2001-09-07 18:13:44 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-09-07 18:13:44 (GMT) |
commit | d6c8ca65363ecc8fc6d65311d77e0105d2b4af92 (patch) | |
tree | 120d576cae4e6733faed169f102f72e1da460df1 /Misc/NEWS | |
parent | a3689fe78675c89d5979c0c5acdb1c173cc75ed6 (diff) | |
download | cpython-d6c8ca65363ecc8fc6d65311d77e0105d2b4af92.zip cpython-d6c8ca65363ecc8fc6d65311d77e0105d2b4af92.tar.gz cpython-d6c8ca65363ecc8fc6d65311d77e0105d2b4af92.tar.bz2 |
Merging 2.2a3 branch changes back into trunk
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 26 |
1 files changed, 18 insertions, 8 deletions
@@ -37,14 +37,16 @@ Core - A new command line option, -Q<arg>, is added to control run-time warnings for the use of classic division. (See PEP 238.) Possible - values are -Qold, -Qwarn, and -Qnew. The default is -Qold, meaning - the / operator has its classic meaning and no warnings are issued. - Using -Qwarn issues a run-time warning about all uses of classic - division for int, long, float and complex arguments. Using -Qnew is - questionable; it turns on new division by default, but only in the - __main__ module. You can usefully combine -Qwarn and -Qnew: this - gives the __main__ module new division, and warns about classic - division everywhere else. + values are -Qold, -Qwarn, -Qwarnall, and -Qnew. The default is + -Qold, meaning the / operator has its classic meaning and no + warnings are issued. Using -Qwarn issues a run-time warning about + all uses of classic division for int and long arguments; -Qwarnall + also warns about classic division for float and complex arguments + (for use with fixdiv.py). Using -Qnew is questionable; it turns on + new division by default, but only in the __main__ module. You can + 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, long, float, str, unicode, and tuple. (The types complex, list and @@ -114,8 +116,16 @@ Library Tools +- Tools/scripts/fixdiv.py has been added which can be used to fix + division operators as per PEP 238. + 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 - New function PyObject_Dir(obj), like Python __builtin__.dir(obj). |