Question about math.pi is mutable
Ben Finney
ben+python at benfinney.id.au
Sun Nov 8 19:00:08 EST 2015
BartC <bc at freeuk.com> writes:
> Is this typical Python code? Creating global objects in other modules
> (or writing all over essential data structures in a library module).
Not “creating global objects”, but changing the referent of a name in
some other module. Yes, that's quite a common technique. Does that
surprise you?
If it surprises you, hopefully you can learn some more Python with this
new knowledge.
--
\ “We can't depend for the long run on distinguishing one |
`\ bitstream from another in order to figure out which rules |
_o__) apply.” —Eben Moglen, _Anarchism Triumphant_, 1999 |
Ben Finney
More information about the Python-list
mailing list