const in Python
Fredrik Lundh
effbot at telia.com
Tue Feb 8 13:25:22 EST 2000
Paul Jackson <pj at sgi.com> wrote:
> Neither of these conventions are padlocks with any substantial
> inherent powers of prevention; but rather little yellow stickies,
> that serve as one more little reminder of a program's structure.
>
> Hence putting down the convention you don't prefer on account
> of its being made of paper, not steel, is a fine example of
> constructing a Paper Tiger.
the problem with the "const" pattern is not only
that it isn't as safe as it pretends to be, but more
importantly, that it affects performance.
bad pydiom.
</F>
<!-- (the eff-bot guide to) python patterns and idioms:
http://www.pythonware.com/people/fredrik/patternbook.htm
-->
More information about the Python-list
mailing list