B
Bengt Richter
A nit, but a sizeable one: For new-style classes, the class scopeFirst of all, I've still not heard any sensible suggestions
about a saner behaviour for augmented assignment or for the
way Python searches the class scope after the instance scope.
is searched first for a descriptor that may trump the instance logic.
A descriptor allows you to make it do as you like, so it'sWhat do you suggest?
Today, x += n acts just as x = x + n if x is immutable.
Do you suggest that this should change?
a matter of discussing default behavior, not what you
are locked into (although costs re optimization could be a topic).
It is already changed, for new-style classes. It is only ifToday, instance.var will look for var in the class
scope if it didn't find it in the instance scope. Do
you propose to change this?
a data descriptor is NOT found in the class hierarchy that
an existing instance variable is accessed as "usual".
I don't think he is proposing anything, just defending againstOr, do you propose that we should have some second order
effect that makes the combination of instance.var += n
work in such a way that these features are no longer
orthogonal?
what he considers misinterpretations of what he is saying.
Given how hard it is to say ANYTHING and be understood EXACTLY,
this tends towards a pursuit of quantum nits ;-)
I suspect we all experience the emotions relevant to being misunderstood;
we just stop at different nit granularities (modulo horn locking ;-)
Regards,
Bengt Richter