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/2008-May/079934.html below:

[Python-Dev] Iterable String Redux (aka String ABC)

[Python-Dev] Iterable String Redux (aka String ABC) [Python-Dev] Iterable String Redux (aka String ABC)Nick Coghlan ncoghlan at gmail.com
Fri May 30 18:40:18 CEST 2008
Michael Foord wrote:
> I would be strongly +1 on a string ABC. Currently (to my knowledge) 
> there is no way of using duck typing for built-in APIs that expect a 
> string. How do I pass in an object to 'open' for example that isn't 
> actually a string or subclass?

Implement the character buffer API, which you can't actually do from 
Python code :P

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
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