Where can I find .join() in the docs

Duncan Booth duncan at NOSPAMrcp.co.uk
Thu May 30 09:48:20 EDT 2002


"Ruediger Maehl" <ruediger.maehl_nospam at web.de> wrote in 
news:newscache$0hdxwg$4oi$1 at www-neu.dzsh.de:

> Hello Pythoneers,
> 
> could anyone please point me to the piece of documentation
> where I can find a description of .join() and all the others?
> 
> Rüdiger
> 
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.

>>> 

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?



More information about the Python-list mailing list