summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-07 16:40:56 +0000
committerGuido van Rossum <guido@python.org>2001-08-07 16:40:56 +0000
commiteef9aa266acd229be167ef60493aaedc2d2544bc (patch)
treebe8207f695f5058eba1331e69f1b06182a465186 /Python/pythonrun.c
parent04fa62226d64c45ec00da0ed38906d1e3240c7d0 (diff)
downloadcpython-eef9aa266acd229be167ef60493aaedc2d2544bc.tar.gz
Cosmetics:
- Add comment blocks explaining add_operators() and override_slots(). (This file could use some more explaining, but this is all I had breath for today. :) - Renamed the argument 'base' of add_wrappers() to 'wraps' because it's not a base class (which is what the 'base' identifier is used for elsewhere). Small nits: - Fix add_tp_new_wrapper() to avoid overwriting an existing __new__ descriptor in tp_defined. - In add_operators(), check the return value of add_tp_new_wrapper(). Functional change: - Remove the tp_new functionality from PyBaseObject_Type; this means you can no longer instantiate the 'object' type. It's only useful as a base class. - To make up for the above loss, add tp_new to dynamic types. This has to be done in a hackish way (after override_slots() has been called, with an explicit call to add_tp_new_wrapper() at the very end) because otherwise I ran into recursive calls of slot_tp_new(). Sigh.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions