How to find "in" in the documentation

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Mar 13 22:42:23 EDT 2009


En Fri, 13 Mar 2009 19:46:11 -0200, <tinnews at isbd.co.uk> escribió:
> Albert Hopkins <marduk at letterboxes.org> wrote:
>> On Fri, 2009-03-13 at 21:01 +0000, tinnews at isbd.co.uk wrote:
>> > I've had this trouble before, how do I find the details of how "in"
>> > works in the documentation.  E.g. the details of:-
>> >
>> >     if string in bigstring:
>>
> >From http://docs.python.org/reference/expressions.html#in
>  That's what I wanted, thanks, I maybe didn't stare hard enough at the
> expressions section.

Also, from the interactive interpreter:

>>> help("in")
Comparisons
***********
[...]

Note that you have to use quotes around "in" because it's a keyword,  
help(in) is invalid.

-- 
Gabriel Genellina




More information about the Python-list mailing list