[issue44605] functools.total_ordering doesn't work with metaclasses

2021-08-05 Thread Glyph Lefkowitz
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. -

[issue43838] There is a way to access an underlying mapping in MappingProxyType

2021-08-05 Thread Serhiy Storchaka
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

[issue44847] ABCMeta.__subclasscheck__() doesn't support duck typing.

2021-08-05 Thread Graham Dumpleton
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

<    1   2