[New-bugs-announce] [issue1145] Allow str.join to join non-string types (as per PEP 3100)

Thomas Lee report at bugs.python.org
Tue Sep 11 13:41:15 CEST 2007


New submission from Thomas Lee:

The current implementation of str.join requires that the parameters
passed to it be string/unicode values. A suggestion to allow it to
accept parameters of any type came up in PEP 3100. Implemented for
Unicode using the attached patch.

It would be trivial to add this functionality to the old string object
too, but I haven't been following the string to unicode discussion too
closely and I'm unsure if the old string object will remain for too much
longer.

----------
components: Interpreter Core
files: join-autostr.patch
messages: 55820
nosy: thomas.lee
severity: minor
status: open
title: Allow str.join to join non-string types (as per PEP 3100)
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1145>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: join-autostr.patch
Type: text/x-patch
Size: 4684 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20070911/ee4515ef/attachment.bin 


More information about the New-bugs-announce mailing list