homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author javawizard
Recipients eric.araujo, francescor, javawizard, lregebro, python-dev, rhettinger
Date 2011年04月18日.23:17:17
SpamBayes Score 5.7680776e-05
Marked as misclassified No
Message-id <1303168638.3.0.163656349919.issue10042@psf.upfronthosting.co.za>
In-reply-to
Content
But it seems pointless to force someone to implement all of the rich comparison methods when they may want to do something as simple as this:
class Foo:
 ...
 def __lt__(self, other):
 if not isinstance(other, Foo):
 return NotImplemented
 return self.some_value < other.some_value
History
Date User Action Args
2011年04月18日 23:17:18javawizardsetrecipients: + javawizard, rhettinger, eric.araujo, lregebro, francescor, python-dev
2011年04月18日 23:17:18javawizardsetmessageid: <1303168638.3.0.163656349919.issue10042@psf.upfronthosting.co.za>
2011年04月18日 23:17:17javawizardlinkissue10042 messages
2011年04月18日 23:17:17javawizardcreate

AltStyle によって変換されたページ (->オリジナル) /