List to string? Docstrings?
François Pinard
pinard at iro.umontreal.ca
Tue Sep 14 13:26:07 EDT 1999
"Fredrik Lundh" <fredrik at pythonware.com> écrit:
> Guido has written an essay on this topic:
> http://www.python.org/doc/essays/list2str.html
Thanks for the pointer. I just read it!
P.S. - In the final remark about g2, I presume the 'B' (not 'b') typecode
type did not exist at the time of the writing? I just tried:
>>> a=array.array('B', 'François')
>>> print a.tostring()
François
So, I guess the "There's a catch..." sentence could be eliminated from
the essay, and the 'b' replaced by 'B' instead.
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list