[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the review. Committed as r88351. -- status: open -> closed ___ Python tracker ___ ___ P

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The doc needs a versionadded attribute. Otherwise, looks good to me. -- nosy: +pitrou resolution: -> accepted stage: -> commit review ___ Python tracker

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Here is the patch I'd like to add to 3.2: this adds PyType_GetFlags, so that the fast checks remain available. -- nosy: +georg.brandl priority: normal -> release blocker Added file: http://bugs.python.org/file20678/tp_flags.diff _

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-04 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: Reconsidering: it's better to use PyType_IsSubtype, as this matches better the fast check. -- Added file: http://bugs.python.org/file20646/unisub.diff ___ Python tracker ___

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-02 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file20645/unisub.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-02 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file20645/unisub.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-02 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file20644/unisub.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: The fast subtype checks cannot be supported in the limited API, as the layout of type objects is intentionally not exposed. It would be possible to expose a getter for the type flags; the individual flag values *are* part of the ABI. I propose the attached p

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-01-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Interpreter Core -None nosy: +loewis type: -> behavior ___ Python tracker ___ ___ Python-

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-01-29 Thread Peter Eisentraut
New submission from Peter Eisentraut : When setting Py_LIMITED_API, functions such as PyUnicode_Check() can no longer be used. Example: #define Py_LIMITED_API #include void foo() { PyObject *o; PyUnicode_Check(o); } test.c: In function ‘foo’: test.c:9: error: dereferencing pointe