diff options
author | Guido van Rossum <guido@python.org> | 2001-08-17 16:47:50 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-17 16:47:50 +0000 |
commit | b5006025fccf0985f3ef3f3365ff4cedcae66461 (patch) | |
tree | def9499fb9a14f14a3593244420f54730a7b9cd4 /Python/pythonrun.c | |
parent | 2fbb38c6be173432cd1c9f64d958f06de5ce4aa4 (diff) | |
download | cpython-b5006025fccf0985f3ef3f3365ff4cedcae66461.tar.gz |
type_new(): look for __dynamic__ at the module level (after looking in
the class dict). Anything but a nonnegative int in either place is
*ignored* (before, a non-Boolean was an error). The default is still
static -- in a comparative test, Jeremy's Tools/compiler package ran
twice as slow (compiling itself) using dynamic as the default. (The
static version, which requires a few tweaks to avoid modifying class
variables, runs at about the same speed as the classic version.)
slot_tp_descr_get(): this also needed fallback behavior.
slot_tp_getattro(): remove a debug fprintf() call.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions