Issue7116
Created on 2009-10-12 22:37 by jess.austin, last changed 2009-10-14 18:48 by georg.brandl.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
jointakesiterables.diff
|
jess.austin,
2009-10-12 22:48
|
patch to __doc__ strings and stdtypes documentation |
|
|
|
msg93909 - (view) |
Author: Jess Austin (jess.austin) |
Date: 2009-10-12 22:37 |
|
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.
|
|
msg94009 - (view) |
Author: Georg Brandl (georg.brandl) |
Date: 2009-10-14 18:48 |
|
Thanks, fixed in r75418.
|
|
| Date |
User |
Action |
Args |
| 2009-10-14 18:48:41 | georg.brandl | set | status: open -> closed resolution: fixed messages:
+ msg94009
|
| 2009-10-12 22:48:54 | jess.austin | set | files:
+ jointakesiterables.diff keywords:
+ patch |
| 2009-10-12 22:37:39 | jess.austin | create | |
|