This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jess.austin
Recipients georg.brandl, jess.austin
Date 2009-10-12.22:37:39
SpamBayes Score 0.00042288334
Marked as misclassified No
Message-id <1255387061.17.0.69385266786.issue7116@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-10-12 22:37:41jess.austinsetrecipients: + jess.austin, georg.brandl
2009-10-12 22:37:41jess.austinsetmessageid: <1255387061.17.0.69385266786.issue7116@psf.upfronthosting.co.za>
2009-10-12 22:37:39jess.austinlinkissue7116 messages
2009-10-12 22:37:39jess.austincreate