What does 'is' do?

D

Derek Fountain

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?
 
A

Andrew Bennetts

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.
 
T

Thomas Heller

Derek Fountain said:
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?

Second hit if you enter 'is' and press the search button:

<http://starship.python.net/crew/theller/pyhelp.cgi>

<http://starship.python.net/crew/theller/pyhelp.cgi?keyword=is&version=current>

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,038
Members
47,633
Latest member
BriannaLyk

Latest Threads

Top