diff options
author | Guido van Rossum <guido@python.org> | 2001-08-07 16:40:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-07 16:40:56 (GMT) |
commit | f040ede6e8a0ccb37f60798ad1cc48d265b5d2c2 (patch) | |
tree | ce6f3b4d10773f2879fd395e736f500eafbf87fd /Grammar | |
parent | cd738364ce1a5de26a891b61d2c1baf1e692f0e0 (diff) | |
download | cpython-f040ede6e8a0ccb37f60798ad1cc48d265b5d2c2.zip cpython-f040ede6e8a0ccb37f60798ad1cc48d265b5d2c2.tar.gz cpython-f040ede6e8a0ccb37f60798ad1cc48d265b5d2c2.tar.bz2 |
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 'Grammar')
0 files changed, 0 insertions, 0 deletions