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/003168.html below:

[Python-Dev] Re: unicode: strange exception

[Python-Dev] Re: unicode: strange exception [Python-Dev] Re: unicode: strange exceptionM.-A. Lemburg mal@lemburg.com
Thu, 06 Apr 2000 00:51:51 +0200
Fredrik Lundh wrote:
> 
> >>> None in "abc"
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: coercing to Unicode: need string or charbuffer
> 
> now that's an interesting error message.  I think the old one
> was better ;-)

How come you're always faster on this than I am with
my patches ;-)

The above is already fixed in my local version (together with
some other minor stuff I found in the codec error handling) with
the next patch set.

It will then again produce this output:

>>> None in "abc"
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: string member test needs char left operand

BTW, my little "don't use tabs use spaces" in C code extravaganza
was a complete nightmare... diff just doesn't like it and the
Python source code is full of places where tabs and spaces
are mixed in many different ways... I'm back to tabs-indent-mode
again :-/

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/




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