Can global variable be passed into Python function?

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Mar 2 08:00:40 EST 2014


On 02/03/2014 10:59, Ben Finney wrote:
> Marko Rauhamaa <marko at pacujo.net> writes:
>
>> Ben Finney <ben+python at benfinney.id.au>:
>>
>>> The unreliability is “will objects defined elsewhere have a different
>>> identity?”
>>
>> That question is not interesting in my context, and has no bearing on
>> the correctness of the program.
>
> You keep vacillating between two positions: pick one for the context.
>
> Either you care about object identity in this context, and the above
> observation is relevant.
>
> Or, you don't care about object identity in this context, and you should
> avoid ‘is’ and use ‘==’.
>
> But you cannot have both.
>

Unless you're a troll.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com





More information about the Python-list mailing list