Can global variable be passed into Python function?

Marko Rauhamaa marko at pacujo.net
Fri Feb 28 20:10:43 EST 2014


Ben Finney <ben+python at benfinney.id.au>:
>>From each other, of course they're distinct, because they are unequal.
>> They are *not* necessarily distinct from other strings with equal
> value, defined elsewhere. That's what has been pointed out to you many
> times.

That point is completely irrelevant. The state objects only need to be
distinct from each other. How do I know? I originally wrote the example.
> So, either you care about these values being distinct from all others
> because you want to compare them with ‘is’ (and so strings are a poor
> choice);

Strings are as good objects for the purpose as any and have some nice
advantages during troubleshooting and logging.
Marko


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /