Ethan Furman added the comment: ============================================================================ --> 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". ---------- assignee: -> ethan.furman nosy: +barry, eli.bendersky, ethan.furman resolution: -> rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19011> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com