Message70523
Maybe there is a better solution along the following line: conditionally
define Py_TPFLAGS_DEFAULT so that when compiling the Python core it
includes the Py_TPFLAGS_HAVE_VERSION_TAG, but when compiling extension
modules it does not. This should ensure compatibility with many
existing extension modules. (It would still break if they play tricks
like modifying the tp_dict of types other than their own.)
In addition, to support the method cache in newer C extension modules:
* C types defined by C extension modules can include the
Py_TPFLAGS_HAVE_VERSION_TAG explicitly to enable the cache;
* new C API functions should be introduced to give an official way to
access the tp_dict of a type, e.g. PyType_{Get,Set,Del}DictItemString(). |
|
Date |
User |
Action |
Args |
2008-07-31 16:07:45 | arigo | set | recipients:
+ arigo, gvanrossum, georg.brandl, rhettinger, amaury.forgeotdarc, _doublep, benjamin.peterson |
2008-07-31 16:07:44 | arigo | set | messageid: <1217520464.98.0.14781167983.issue1878@psf.upfronthosting.co.za> |
2008-07-31 16:07:44 | arigo | link | issue1878 messages |
2008-07-31 16:07:40 | arigo | create | |
|