[issue7491] metaclass __cmp__ is ignored

2009-12-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76852. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue7491] metaclass __cmp__ is ignored

2009-12-15 Thread flox
flox added the comment: Note: test_py3kwarn fails, probably since r76794. -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list m

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76794. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It seems that type was switched to use tp_richcompare in r61529: Add py3k warnings for object, type, cell and dict comparisons. This should resolve issue2342 and partly resolve issue2373. -- ___ Python tracker

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Apparently type has __lt__ and the other rich cmp specials in Python 2.6, but lacked them in Python 2.5. I suppose these are probably being given precedence over the overridden __cmp__. -- ___ Python tracker <

[issue7491] metaclass __cmp__ is ignored

2009-12-13 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Here's an example of a metaclass with a __cmp__ special: exar...@boson:/tmp$ cat metacmp.py class X(type): def __cmp__(self, other): return -1 class Y: __metaclass__ = X print Y < Y exar...@boson:/tmp$ py