[Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3
Benjamin Peterson
benjamin at python.org
Fri Apr 27 23:33:19 CEST 2012
More information about the Python-porting mailing list
Fri Apr 27 23:33:19 CEST 2012
- Previous message: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3
- Next message: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2012/4/27 Barry Warsaw <barry at python.org>: > On Apr 27, 2012, at 05:48 PM, Amaury Forgeot d'Arc wrote: > >>This is correct. I checked that everywhere Py_TPFLAGS_HAVE_ITER is used in >>Python2.7, the corresponding code in Python 3 does as if this flag is always >>set. >> >>So you could either #ifdef its usage, or simply put in some compatibility >>header file: >>#if PY_MAJOR_VERSION >=3 >># define Py_TPFLAGS_HAVE_ITER 0 >>#endif > > Thanks for the confirmation. I've been wondering if Benjamin might be > interested in contributions to `six` that address C compatibility. Yes, absolutely. I haven't ported gobs of C code, so I'm not up on what exactly people want. -- Regards, Benjamin
- Previous message: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3
- Next message: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-porting mailing list