On Mon, Mar 21, 2016 at 6:29 PM Martin Bammer <mrb...@gmail.com> wrote:
> Hi, > > I just saw that PyrexTypes.py seems to have a typo in lines 3740 and 3742: > > def __cmp__(self, other): > if isinstance(other, TemplatePlaceholderType): > return cmp(self.name, other.name) > else: > return cmp(type(self), type(other)) > > > PyCharm is complaining that "cmp" is an unresolved reference. > > Regards, > > Martin > > AFAICT, that whole function isn't really necessary. It defines the behavior for when you call `cmp` on an instance of that particular class. In Python 3 that particular builtin function doesn't exist. It'll work fine in Python 2, but since the codebase supports both it's not clear when that would actually be useful. Best, -Ian Henriksen
_______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel