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 ethan.furman
Recipients barry, eli.bendersky, ethan.furman, lambacck
Date 2013-09-13.17:23:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379092987.41.0.593922682652.issue19011@psf.upfronthosting.co.za>
In-reply-to
Content
============================================================================
--> class Test:
...   this = 'that'
...   these = 'those'
... 
--> Test.this
'that'
--> Test.this.these
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'str' object has no attribute 'these'
============================================================================

This is not normal Python behavior, nor does it seem to be behavior intrinsic to enumerations.  It also adds an Alice-in-Wonderland quality to Enums:
============================================================================
--> red = Color.red
--> red.blue.blue.red.green.blue
<Color.blue: 3>
============================================================================

We're going to have to live without this particular "feature".
History
Date User Action Args
2013-09-13 17:23:07ethan.furmansetrecipients: + ethan.furman, barry, lambacck, eli.bendersky
2013-09-13 17:23:07ethan.furmansetmessageid: <1379092987.41.0.593922682652.issue19011@psf.upfronthosting.co.za>
2013-09-13 17:23:07ethan.furmanlinkissue19011 messages
2013-09-13 17:23:07ethan.furmancreate