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/2019-March/156822.html below:

[Python-Dev] Replacement for array.array('u')?

[Python-Dev] Replacement for array.array('u')? [Python-Dev] Replacement for array.array('u')?Serhiy Storchaka storchaka at gmail.com
Fri Mar 22 07:27:08 EDT 2019
22.03.19 09:31, Greg Ewing пише:
> A poster on comp.lang.python is asking about array.array('u').
> He wants an efficient mutable collection of unicode characters
> that can be initialised from a string.
> 
> According to the docs, the 'u' code is deprecated and will be
> removed in 4.0, but no alternative is suggested.
> 
> Why is this being deprecated, instead of keeping it and making
> it always 32 bits? It seems like useful functionality that can't
> be easily obtained another way.

Making it always 32 bits would be compatibility breaking change. 
Currently array('u') represents the wchar_t string, and many API on 
Windows require it.

But we can add a new code, e.g. 'U', for UCS4.

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