Re: int rich comparisons

2009-10-02 Thread Mark Dickinson
On Oct 2, 3:52 pm, George Sakkis george.sak...@gmail.com wrote: I stumbled upon the following strangeness (python 2.6.2): getattr(int, '__gt__') method-wrapper '__gt__' of type object at 0x822b7c0 getattr(5, '__gt__') Traceback (most recent call last):n   File stdin, line 1, in module

Re: int rich comparisons

2009-10-02 Thread Robert Kern
George Sakkis wrote: I stumbled upon the following strangeness (python 2.6.2): getattr(int, '__gt__') method-wrapper '__gt__' of type object at 0x822b7c0 getattr(5, '__gt__') Traceback (most recent call last):n File stdin, line 1, in module AttributeError: 'int' object has no attribute

Re: int rich comparisons

2009-10-02 Thread Terry Reedy
Robert Kern wrote: George Sakkis wrote: I stumbled upon the following strangeness (python 2.6.2): getattr(int, '__gt__') method-wrapper '__gt__' of type object at 0x822b7c0 getattr(5, '__gt__') Traceback (most recent call last):n File stdin, line 1, in module AttributeError: 'int'