Re: Naive idiom questions



Terran Melconian <te_rem_ra_ove_an_forspam@xxxxxxxxxxxxxx> 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.
.