Who knows somefunction?

Gregor Lingl glingl at aon.at
Thu Sep 26 17:57:03 EDT 2002


Tim Peters schrieb:

>[Gregor Lingl]
>  
>
>>Is there a function <somefunction> in Python for which
>>
>>something is <somefunction>(id(something))
>>
>>returns invariably true?
>>    
>>
>
>I'm not sure you're asking the question you intended to ask, but str() 
>is one answer to the question you actually asked.
>  
>
I don't think so:
 >>> something = [1,2,3]
 >>> something is str(id(something))
0

How did you understand my question?
(Errors should never pass silently)
Gregor

>uselessly y'rs  - tim
>
>
>
>  
>





More information about the Python-list mailing list