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 eli.bendersky
Recipients barry, eli.bendersky, eric.snow, ethan.furman
Date 2013-09-05.15:54:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAF-Rda_hc_2z9nm9=m8qsasx2UFs=LHvNmuQS1t=0AS8uOeigA@mail.gmail.com>
In-reply-to <1378332318.03.0.380952446091.issue18924@psf.upfronthosting.co.za>
Content
On Wed, Sep 4, 2013 at 3:05 PM, Ethan Furman <report@bugs.python.org> wrote:

>
> Ethan Furman added the comment:
>
> Yes, as a matter of fact:
>
> --> Test.this
> <Test.this: 'that'>
> --> Test.this = 'other'
> --> Test.this
> 'other'
> --> Test('that')
> <Test.this: 'that'>
> --> list(Test)
> [<Test.this: 'that'>]
>
> As you can see, the Test Enum becomes inconsistent if this is allowed.
>

Again, this is fully in accordance to the Python philosophy of allowing
monkey-patching in the first place. There's any number of way
monkey-patching objects can lead to inconsistent states, because the
internal invariants are only guaranteed to be preserved through public,
documented interfaces.

I'm still -1.
History
Date User Action Args
2013-09-05 15:54:24eli.benderskysetrecipients: + eli.bendersky, barry, ethan.furman, eric.snow
2013-09-05 15:54:24eli.benderskylinkissue18924 messages
2013-09-05 15:54:24eli.benderskycreate