cpython/Misc
Tim Peters 3caca2326e SF bug #488514: -Qnew needs work
Big Hammer to implement -Qnew as PEP 238 says it should work (a global
option affecting all instances of "/").

pydebug.h, main.c, pythonrun.c:  define a private _Py_QnewFlag flag, true
iff -Qnew is passed on the command line.  This should go away (as the
comments say) when true division becomes The Rule.  This is
deliberately not exposed to runtime inspection or modification:  it's
a one-way one-shot switch to pretend you're using Python 3.

ceval.c:  when _Py_QnewFlag is set, treat BINARY_DIVIDE as
BINARY_TRUE_DIVIDE.

test_{descr, generators, zipfile}.py:  fiddle so these pass under
-Qnew too.  This was just a matter of s!/!//! in test_generators and
test_zipfile.  test_descr was trickier, as testbinop() is passed
assumptions that "/" is the same as calling a "__div__" method; put
a temporary hack there to call "__truediv__" instead when the method
name is "__div__" and 1/2 evaluates to 0.5.

Three standard tests still fail under -Qnew (on Windows; somebody
please try the Linux tests with -Qnew too!  Linux runs a whole bunch
of tests Windows doesn't):
    test_augassign
    test_class
    test_coercion
I can't stay awake longer to stare at this (be my guest).  Offhand
cures weren't obvious, nor was it even obvious that cures are possible
without major hackery.

Question:  when -Qnew is in effect, should calls to __div__ magically
change into calls to __truediv__?  See "major hackery" at tail end of
last paragraph <wink>.
2001-12-06 06:23:26 +00:00
..
RPM Update a beopen.com e-mail 2001-08-13 15:14:13 +00:00
ACKS SF patch #489680 (David Abrahams): h2py uses nonexistent method splitfields() 2001-12-06 03:31:04 +00:00
AIX-NOTES Rename Setup.in to Setup.dist, and assume that configure will create 2000-10-26 17:07:40 +00:00
BeOS-NOTES Completely revamped BeOS notes, by Donn Cave (SF patch 411834). 2001-04-10 21:51:29 +00:00
BeOS-setup.py This is for BeOS users who want to build all the modules. It's 2001-04-10 21:50:09 +00:00
cheatsheet Update cheatsheet to 2.0 from Brunning/Gruet's quick reference 2001-08-06 17:43:49 +00:00
find_recursionlimit.py script that reports a fairly safe recursionlimit for a specific platform 2000-08-31 19:24:17 +00:00
gdbinit PyObject_Dump() -> _PyObject_Dump() 2001-01-24 04:18:13 +00:00
HISTORY Added release dates (in some cases detemined by looking at the mtime 2000-09-04 17:24:24 +00:00
HPUX-NOTES Added note about libpython1.5.a. 1997-07-19 20:44:33 +00:00
indent.pro Some new files... 1994-09-14 14:06:46 +00:00
NEWS SF bug #488514: -Qnew needs work 2001-12-06 06:23:26 +00:00
Porting Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
PURIFY.README Updated for Python 1.5, including my experiences with Purify on 1997-10-07 15:50:58 +00:00
python-mode.el (py-version): Hopefully fixed my XEmacs settings so this doesn't get 2001-07-06 20:27:29 +00:00
python.man SF patch #467455 : Enhanced environment variables, by Toby Dickenson. 2001-10-12 22:17:56 +00:00
README Updated this README to reality. 2001-10-26 15:01:16 +00:00
RFD Initial revision 1994-01-26 10:20:16 +00:00
setuid-prog.c correct bogus instructions 'ccoment out' -> 'uncomment' 1998-09-10 20:18:09 +00:00
unicode.txt Replace the text with a link to the PEP-ified version. 2001-06-27 17:14:04 +00:00
vgrindefs Add 'yield' as a keyword 2001-08-06 17:42:53 +00:00

Python Misc subdirectory
========================

This directory contains files that wouldn't fit in elsewhere.  Some
documents are only of historic importance.

Files found here
----------------

ACKS		Acknowledgements
AIX-NOTES	Notes for building Python on AIX
BeOS-NOTES	Notes for building on BeOS
BeOS-setup.py	setup.py replacement for BeOS, see BeOS-NOTES
HISTORY		News from previous releases -- oldest last
HPUX-NOTES	Notes about dynamic loading under HP-UX
NEWS		News for this release
PURIFY.README	Information for Purify users
Porting		Mini-FAQ on porting to new platforms
README		The file you're reading now
RFD		Request For Discussion about a Python newsgroup
RPM		(Old) tools to build RPMs
cheatsheet	Quick summary of Python by Ken Manheimer
find_recursionlimit.py  Script to find a value for sys.maxrecursionlimit
gdbinit		Handy stuff to put in your .gdbinit file, if you use gdb
indent.pro	GNU indent profile approximating my C style
python-mode.el	Emacs mode for editing Python programs
python.man	UNIX man page for the python interpreter
setuid-prog.c	C helper program for set-uid Python scripts
unicode.txt	Marc-Andre Lemburg's specification of the Unicode API
vgrindefs	Python configuration for vgrind (a generic pretty printer)