|
From: dperez <cra...@ya...> - 2007-08-30 10:24:32
|
Thanks Charlie
cmp() works ok. :-)
Charlie Groves wrote:
>
> Nope. Python added rich comparison methods(__eq__, __gt__, __le__ and
> so on) in 2.1, and Jython's str uses those in 2.2 instead of __cmp__.
> CPython exhibits the same behavior. You can get equivalent
> functionality to __cmp__ with the builtin cmp function: cmp('a', 'b')
>
--
View this message in context: http://www.nabble.com/AttributeError%3A-%27string%27-object-has-no-attribute-%27__cmp__%27-tf4346266.html#a12404384
Sent from the jython-users mailing list archive at Nabble.com.
|