Re: ABOUT FIND

2005-10-24 Thread Fredrik Lundh
Shi Mu wrote: >I got confused by the following information from the help for "FIND": > find(s, *args) what "FIND" ? >>> help(str.find) Help on method_descriptor: find(...) S.find(sub [,start [,end]]) -> int Return the lowest index in S where substring sub is found, such that sub is

ABOUT FIND

2005-10-24 Thread Shi Mu
I got confused by the following information from the help for "FIND": find(s, *args) find(s, sub [,start [,end]]) -> in what does *args mean (especially the '*')? also, in the sub, why put a comma before start? what does 'in' mean? -- http://mail.python.org/mailman/listinfo/python-list