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/079859.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)Georg Brandl g.brandl at gmx.net
Thu May 29 09:03:29 CEST 2008
Greg Ewing schrieb:
> Bill Janssen wrote:
> 
>> Look, even if there were *no* additional methods, it's worth adding
>> the base class, just to differentiate the class from the Sequence, as
>> a marker, so that those of us who want to ask "isinstance(o, String)"
>> can do so.
> 
> Doesn't isinstance(x, basestring) already cover that?

That doesn't cover UserString, for example.

Georg

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