A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-May/125796.html below:

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

[Python-Dev] enum discussion: can someone please summarize open issues? [Python-Dev] enum discussion: can someone please summarize open issues?Barry Warsaw barry at python.org
Wed May 1 08:18:43 CEST 2013
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

-Barry
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4