A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/064590.html below:

[Python-Dev] Crazy idea for str.join

[Python-Dev] Crazy idea for str.join [Python-Dev] Crazy idea for str.joinEdward Loper edloper at gradient.cis.upenn.edu
Sat Apr 29 16:15:40 CEST 2006
Nick Coghlan wrote:
> Edward Loper wrote:
>> This is incompatible with the recent proposal making str.join 
>> automatically str-ify its arguments.  i.e.:
>>
>>    ''.join(['a', 12, 'b']) -> 'a12b'.
>>
>> I don't feel strongly about either proposal, I just thought I'd point 
>> out that they're mutually exclusive.
> 
> Doesn't accepting objects that support the buffer interface come for 
> free with stringification? (My understanding of buffer objects is fairly 
> sketchy, so I may be missing something here. . .)

It's quite possible that I'm the one who was confused.. I just tried it 
out with string-based buffers, and for that case at least it works fine. 
  I don't know about other buffers.  So actually these two proposals 
might be compatible after all.

-Edward
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4