Does Python really follow its philosophy of "Readability counts"?
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Wed Jan 14 11:51:17 EST 2009
Paul Rubin a écrit :
> Bruno Desthuilliers <bruno.42.desthuilliers at websiteburo.invalid> writes:
>>> If the programmer could
>>> somehow disallow it in certain classes,
>> Already possible - you just have to provide your own implementation of
>> __setattr__.
>
> Part of the idea of non-dynamic attribute sets is to make the program
> run faster, not slower.
Russ argument was about "good engineering", not about raw perfs. FWIW,
_you_ may be willing to trade dynamism for raw perfs, but there are
probably some people here that won't agree.
More information about the Python-list
mailing list