Glyph Lefkowitz added the comment:
My preference would be to fix it one way or another; the stdlib should be
correct before it's performant. If, as you say, it's better to write the
methods longhand anyway for ease of debugging, then it makes sense to write
them out for performance, too.
-
Serhiy Storchaka added the comment:
Good catch! Thank you Raymond for the third example.
I though that it can be easily fixed by calling tp_traverse() for submapping:
static int
mappingproxy_traverse(PyObject *self, visitproc visit, void *arg)
{
mappingproxyobject *pp = (mappingproxyo
New submission from Graham Dumpleton :
The Python standard library has two effective implementations of helpers for
the ABCMeta class. A C implementation, and a pure Python version which is only
used if the C implementation isn't available (perhaps for PyPy).
* https://github.com/python/cpyth
101 - 103 of 103 matches
Mail list logo