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

[Python-Dev] unicode inconsistency?

[Python-Dev] unicode inconsistency? [Python-Dev] unicode inconsistency?"Martin v. Löwis" martin at v.loewis.de
Thu Sep 9 23:00:12 CEST 2004
M.-A. Lemburg wrote:
>> No, it would not "work" the way I want.  I don't want to force
>> things to unicode strings unless necessary.
> 
> 
> Unicode always causes coercion towards Unicode, just like floats
> always cause coercion towards floats. Nothing's going to
> change at that end.

Not always. As we are discussing right now, str() (and indirectly
%s) coerce Unicode objects into string objects. Also,
PyArg_ParseTuple coerces Unicode into byte strings for the "s"
and "t" formats.

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