]> granicus.if.org Git - python/commit
type_new(): look for __dynamic__ at the module level (after looking in
authorGuido van Rossum <guido@python.org>
Fri, 17 Aug 2001 16:47:50 +0000 (16:47 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Aug 2001 16:47:50 +0000 (16:47 +0000)
commit1a49350e8d7fdf7c847cc41bc1d3511dd203320d
tree20b5eb20413550d1f150fadbe7526568a0b8529c
parent7cb32ae7bf1a9c3b9ce1ee0d93894a7a528a2a6f
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.
Objects/typeobject.c