Dynamic Dictionary Creation
Carl Banks
imbosol at vt.edu
Sun Dec 8 16:04:44 EST 2002
maney at pobox.com wrote:
> Carl Banks <imbosol at vt.edu> wrote:
>> Bengt Richter wrote:
>>> Yes, but if the table is only used in the function, that's not nice.
>>> There are several alternatives you could use.
>>
>> I wouldn't totally agree with this. Data that never changes ought to
>> be global.
>
> Well, no. Data should not be global *because* it is unchanging. Its
> scope ought to be decided on the basis of needs-to-know.
Global can mean two things: exists everywhere, or visible everywhere.
The latter use is more common, I guess. I thought it was clear from
the ensuing paragraph that I meant the former. Sorry.
--
CARL BANKS
More information about the Python-list
mailing list