where does 'index()' come from?
D-Man
dsh8290 at rit.edu
Mon May 21 22:21:18 EDT 2001
On Mon, May 21, 2001 at 08:07:34PM -0600, erudite wrote:
<where can I find docs on index()?>
| sys.argv[1].index('=')
Let's see what the type of the various parts of this expression are :
sys : module
sys.argv : list of strings
sys.argv[1] : string
Due to the dot notation, 'index' is a method of the result of
'sys.argv[1]' expression, thus it is a string method.
See the Library Reference in the Builtin Objects section. Look at
Sequence Objects. Near the bottom of the page is a link to String
Methods.
HTH,
-D
More information about the Python-list
mailing list