Checking a string against multiple matches
Jerry Hill
malaclypse2 at gmail.com
Mon Dec 1 15:53:23 EST 2008
On Mon, Dec 1, 2008 at 3:29 PM, Aaron Scott <aaron.hildebrandt at gmail.com> wrote:
> Damn you, Python, and your loose documentation! It never occurred to
> me to actually TRY my pseudocode, since I couldn't find anything on
> that type of statement. Anyway, feel free to ignore me from now on.
I'm not sure where you think the "in" operator should be documented.
It's in the documentation for sequence types:
http://docs.python.org/library/stdtypes.html#sequence-types-str-unicode-list-tuple-buffer-xrange
The tutorial points there too, in its discussion of strings.
It's also in the language reference, in the section on comparision operators:
http://docs.python.org/reference/expressions.html#id12
Was there someplace you were looking that you expected to find
something about the containment operator and couldn't find it? Maybe
it would be worth adding a "See Also" someplace?
--
Jerry
More information about the Python-list
mailing list