Dumb python questions

Tim Peters tim.one at home.com
Wed Aug 22 02:09:19 EDT 2001


[Alex Martelli]
> Hmmm -- it looks to me we were VERY close to a BDFL pronouncement
> that assignment to aninstance.__class__ was going away, and that by
> default classes were going to be unmodifiable -- both for performance
> reasons, and to protect 'typical users' from themselves -- and it may
> yet happen, of course.  "dangerous" seems an apt adjective here.

[Aahz Maruch]
> No, we weren't.  Part of the reason I paid little attention to the
> brouhaha was because it was remarkably easy to channel Guido and figure
> out that *at* *worst* the restriction would only apply to classes
> inheriting from object.  Yes, even after the type/class unification was
> complete.  Once Guido realized that the decision would affect things
> other than just aninstance.__class__, he backed away *very* quickly.

Ouch.  Aahz, I don't know whether to say "Bravo!", or to try to turn the
community against you.  You're the only other person in 10 years to display
the one trivial skill it takes to do my job, so I fear my livelihood is at
stake here <wink>.

bravo-it-is-ly y'rs  - tim





More information about the Python-list mailing list