This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author arigo
Recipients _doublep, amaury.forgeotdarc, arigo, benjamin.peterson, georg.brandl, gvanrossum, rhettinger
Date 2008-07-31.16:07:39
SpamBayes Score 1.455069e-06
Marked as misclassified No
Message-id <1217520464.98.0.14781167983.issue1878@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2008-07-31 16:07:45arigosetrecipients: + arigo, gvanrossum, georg.brandl, rhettinger, amaury.forgeotdarc, _doublep, benjamin.peterson
2008-07-31 16:07:44arigosetmessageid: <1217520464.98.0.14781167983.issue1878@psf.upfronthosting.co.za>
2008-07-31 16:07:44arigolinkissue1878 messages
2008-07-31 16:07:40arigocreate