Where can I find .join() in the docs
Ruediger Maehl
ruediger.maehl_nospam at web.de
Thu May 30 10:36:04 EDT 2002
"Duncan Booth" <duncan at NOSPAMrcp.co.uk> wrote
> Read the Python library reference, section 2.2.6.1 'String Methods' and
you
> will probably find much of the rest of section 2.2 of interest as well.
>
> or (Python 2.2), at the interactive prompt type:
>
> >>> help(str.join)
> Help on method_descriptor:
>
> join(...)
> S.join(sequence) -> string
>
> Return a string which is the concatenation of the strings in the
> sequence. The separator between elements is S.
That is the description I was looking for, but how do I guess "str"?
I also cannot find it in the Global Module Index. What else is hidden?
(Although I use Python for nearly two years, I sometimes still feel
like a beginner).
> help(str) gives you a complete list of all str methods, but includes a lot
> of internal stuff you probably don't care about.
>
> --
> Duncan Booth duncan at rcp.co.uk
> int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
> "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
Thanks a lot,
RĂ¼diger
More information about the Python-list
mailing list