[Python-bugs-list] [ python-Bugs-424962 ] inconsistent result with __eq__
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 17 May 2001 13:14:01 -0700
Bugs item #424962, was updated on 2001-05-17 13:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424962&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: inconsistent result with __eq__
Initial Comment:
I define __eq__ to allow to check for class equality.
This class contains only one string. I get inconsistent
results (depending
on the string contained in the class instances (fails
if string contains
a '-' character).
The attached sample is simple to follow. If you change
the string from "-c" to "c", then the sample works!
Thanks for the great work! I love python.
Gregory Popovitch (greg@gpy.com)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424962&group_id=5470