> I don't see any problems with implementing this on types defined in C. This > isn't harder than implementing __sizeof__ or pickling support, and NumPy > classes already have implemented both. Maybe Yury forgot about METH_STATIC > and METH_CLASS?
I just tested __class_getitem__ defined via METH_STATIC and it works. This means we don't need to add slots. Thanks for the hint, Serhiy! Ivan, this might be worth mentioning in the PEP or in the docs. Yury _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com