Can global variable be passed into Python function?

Marko Rauhamaa marko at
Sat Mar 1 12:28:09 CET 2014

Ben Finney <ben+python at>:

> Use ‘==’, since that's all that matters for getting a value that will
> work fine.

You are telling me to use '==' if I choose string objects and 'is' if I
choose some other objects.

I prefer a solution that works regardless of what objects I choose for

There really is no taboo against string object identity if you know what
you are doing.


More information about the Python-list mailing list