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

Antoine Pitrou solipsis at pitrou.net
Fri Mar 22 10:49:14 EDT 2019


On Fri, 22 Mar 2019 16:11:45 +0200
Serhiy Storchaka <storchaka at gmail.com> wrote:
> 22.03.19 13:33, Antoine Pitrou пише:
> > On Fri, 22 Mar 2019 13:27:08 +0200
> > Serhiy Storchaka <storchaka at gmail.com> wrote:  
> >> 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.  
> > 
> > The question is: why would you use a array.array() with a Windows C API?  
> 
> I do not. But maybe it is used. And changing the width of the 'u' code 
> would break such use case.

Right.  But changing the width is not what I had in mind.  Just keep it
identical until we finally decide to remove it.

Regards

Antoine.




More information about the Python-Dev mailing list