On 18 August 2010 21:51, Lisandro Dalcin <[email protected]> wrote:
> On 18 August 2010 20:56, Robert Bradshaw <[email protected]> wrote:
>> On Wed, Aug 18, 2010 at 1:12 PM, Lisandro Dalcin <[email protected]> wrote:
>>> Take a look at the definition of Py_TPFLAGS_DEFAULT for Python 2.6 and
>>> 2.7, you will notice that Py_TPFLAGS_HAVE_VERSION_TAG is only added
>>> when building core Python, but not for extension types. This is not
>>> the case of Python 3.x.
>>>
>>> So it seems that extension types will not benefit from the 2.6/2.7
>>> type cache. Am I missing something? Comments?
>>
>> Is there some kind of a contract we could obey to enable it for our
>> extension types?
>>
>
> I do not think so... perhaps we should ask in python-dev ...
>

http://bugs.python.org/issue1878#msg61381

In sort, Guido decided to remove the flag from TPFLAGS_DEFAULT just in
case Py2 extension modules are playing with tp_dict (like Cython
(&Pyrex?) did some time ago). I would say it's safe to enable it for
Cython-generated extension types.

Stefan, have you something to add?


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to