On 5/4/2013 11:46 PM, Glenn Linderman wrote:
Somehow, the overloading is not finding the __add__ operator in the NamedInt class, when the NamedInt's are wrapped in enumerations.

And I guess I figured it out... NamedInt needs to test

    issubclass( type( self ), NamedInt )

rather than

    isinstance( self, NamedInt )

and likewise for other. Sorry for the noise, and I finally figured out what issubclass is for :)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to