Naive idiom questions
Paul Rubin
http
Thu Jan 31 17:15:58 EST 2008
Terran Melconian <te_rem_ra_ove_an_forspam at consistent.org> writes:
> I want to be able to accumulate a string with +=, not by going
> through an intermediate list and then doing ''.join(), because I
> think the latter is ugly. There are also times when I'd like to use
> the string as a modifiable buffer.
See the StringIO, cStringIO, and array modules.
> l=[[None]*5 for i in range(5)]
This is the usual way.
> * Is there a way to get headings in docstrings?
I think this is normally not done.
More information about the Python-list
mailing list