For review: PEP 308 - If-then-else expression

Andrew Koenig ark at research.att.com
Sun Feb 9 21:32:41 EST 2003


>> I don't follow.  What's an "instance method" as opposed to a "class
>> method"? [in the context of the string join method]

Erik> I presume he means something like (with S as the sequence, D as the
Erik> string delimiter)

Erik> 	str.join(S, D)

Erik> instead of

Erik> 	D.join(S)

Eh?  str.join(D, S) works just fine, as far as I can see.

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list