What does 'is' do?

Andrew Bennetts andrew-pythonlist at puzzling.org
Thu May 6 02:54:56 EDT 2004


On Thu, May 06, 2004 at 02:44:08PM +0800, Derek Fountain wrote:
> I recently saw a use of 'is' in a piece of Python code. I was trying to find
> out what it does. I can't find it in the online docs. I have the "Python in
> a Nutshell" book and that mentions it as a keyword, but I can't find a
> description of it in there either. It's not in the index.
> 
> Can someone tell me where to look?

How about the Language Reference Manual?

    http://docs.python.org/ref/

If you look in the index, you'll find "is operator" there, which links to:
    
    http://docs.python.org/ref/comparisons.html#l2h-432

-Andrew.





More information about the Python-list mailing list