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/2001-August/016646.html below:

[Python-Dev] Python API version & optional features

[Python-Dev] Python API version & optional features [Python-Dev] Python API version & optional featuresMartin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri, 3 Aug 2001 08:24:02 +0200
> Shouldn't Python automatically Do The Right Thing in that case? That
> would mean wrapping the UCS4 calls in a conversion layer, which
> isn't hard. I mean, it's just a question of adding or taking away
> zeroes, right? :)

Given the smiley at the end of your message, I don't know whether you
meant your point seriously or not.

I believe it is impossible for Python to do what you seem to think as
the "Right Thing". E.g. modules that use PyUnicode_AS_UNICODE will
behave differently when sizeof(Py_UNICODE) changes. Since this is a
macro, you cannot change their behavior at run-time; they have
assumption on the size of Py_UNICODE compiled-in.

Regards,
Martin




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