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 cvp
Recipients cvp
Date 2008-07-01.21:36:16
SpamBayes Score 0.0028870963
Marked as misclassified No
Message-id <1214948178.75.0.219769334273.issue3254@psf.upfronthosting.co.za>
In-reply-to
Content
After defining my own __eq__ method for a class that judged equality
based on a 'name' variable, imagine my surprise to see this:

In [20]: my_graph.edges[-1].end == my_graph.vertices[-1]
Out [20]: True

In [21]: my_graph.edges[-1].end != my_graph.vertices[-1]
Out [21]: True

...all because I forgot to modify __ne__ as well.

I think __ne__ should be changed to 'not __eq__' for the sake of
consistency.
History
Date User Action Args
2008-07-01 21:36:19cvpsetspambayes_score: 0.0028871 -> 0.0028870963
recipients: + cvp
2008-07-01 21:36:18cvpsetspambayes_score: 0.0028871 -> 0.0028871
messageid: <1214948178.75.0.219769334273.issue3254@psf.upfronthosting.co.za>
2008-07-01 21:36:17cvplinkissue3254 messages
2008-07-01 21:36:16cvpcreate