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/2000-April/003166.html below:

[Python-Dev] Re: unicode: strange exception (part 2)

[Python-Dev] Re: unicode: strange exception (part 2) [Python-Dev] Re: unicode: strange exception (part 2)Guido van Rossum guido@python.org
Wed, 05 Apr 2000 17:46:47 -0400
> with the latest version, I get:
> 
> >>> "!" in ("a", None)
> 0
> >>> u"!" in ("a", None)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: coercing to Unicode: need string or charbuffer
> 
> is this really an improvement?
> 
> looks like writing code that works with any kind of strings
> will be harder than I thought...

Are you totally up-to-date?  I get

>>> u"!" in ("a", None)
0
>>> 

--Guido van Rossum (home page: http://www.python.org/~guido/)



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