Re: [Python-Dev] enum discussion: can someone please summarize open issues?

2013年4月30日 23:32:24 -0700

On 04/30/2013 11:18 PM, Barry Warsaw wrote:
On Apr 28, 2013, at 11:50 PM, Ethan Furman wrote:
But as soon as:
 type(Color.red) is Color # True
 type(MoreColor.red) is MoreColor # True
then:
 Color.red is MoreColor.red # must be False, no?
If that last statement can still be True, I'd love it if someone showed me
how.
class Foo:
 a = object()
 b = object()
class Bar(Foo):
 c = object()
Foo.a is Bar.a
True
Wow. I think I'm blushing from embarrassment.
Thank you for answering my question, Barry.
--
~Ethan~
_______________________________________________
Python-Dev mailing list
[email protected]
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