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/2004-January/041655.html below:

[Python-Dev] Relaxing Unicode error handling

[Python-Dev] Relaxing Unicode error handling [Python-Dev] Relaxing Unicode error handlingMartin v. Loewis martin at v.loewis.de
Sun Jan 4 06:31:21 EST 2004
Phillip J. Eby wrote:

>> Is there any way to specify that implicit conversions raise an exception?
>> Perhaps by setting the default encoding to "undefined". 
> 
> 
> Gosh, that sure would have made my last i18n project go faster, and I'd 
> have had more confidence that I'd found all possible conversion issues.  

I don't know whether Neil was actually aware of that feature: In 
site.py, if you uncomment the block

if 0:
     # Enable to switch off string to Unicode coercion and implicit
     # Unicode to string conversion.
     encoding = "undefined"

you get precisely that.

Regards,
Martin


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