Message93909
In its __doc__ string and in the documentation, str.join() is described
as taking a sequence. This is not general enough; it actually takes any
iterable of strings:
>>> ','.join(str(x) for x in range(5))
'0,1,2,3,4'
Maybe this is a small nit to pick, but it slowed me down for a few
minutes, and I already vaguely remembered that str.join() could handle
iterables. |
|
Date |
User |
Action |
Args |
2009-10-12 22:37:41 | jess.austin | set | recipients:
+ jess.austin, georg.brandl |
2009-10-12 22:37:41 | jess.austin | set | messageid: <1255387061.17.0.69385266786.issue7116@psf.upfronthosting.co.za> |
2009-10-12 22:37:39 | jess.austin | link | issue7116 messages |
2009-10-12 22:37:39 | jess.austin | create | |
|