Hoi, Some time I proposed changing the type __repr__ to the import name. While I still think this is a good idea ;-) I found a small inconsistency in the __repr__ code of PyTypeObject. Currently the repr checks for the Py_TPFLAGS_HEAPTYPE flag to check if it should use "class" or "type" as name for the repr.
Now where types and classes are the same i don't think it's a good idea to have different reprs for objects defined in python and for objects defined in the C API. My proposal: change the repr for all objects to "class". So <class 'int'>, <class 'UserDefinedClass'> etc. Regards, Armin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
