Message358089
The aliases were deprecated since Python 3.2. It's now time to use the newer names.
array.array.fromstring() implictly converted Unicode to UTF-8:
$ python3
Python 3.7.5 (default, Oct 17 2019, 12:16:48)
>>> import array
>>> a=array.array('B')
>>> a.fromstring('€uro')
>>> a
array('B', [226, 130, 172, 117, 114, 111])
>>> list('€uro'.encode('utf8'))
[226, 130, 172, 117, 114, 111]
The removal is now documented in 3.7 and 3.8. |
|
Date |
User |
Action |
Args |
2019-12-09 13:58:48 | vstinner | set | recipients:
+ vstinner, brett.cannon, rhettinger, benjamin.peterson, serhiy.storchaka, corona10, miss-islington |
2019-12-09 13:58:48 | vstinner | set | messageid: <1575899928.56.0.125913752827.issue38916@roundup.psfhosted.org> |
2019-12-09 13:58:48 | vstinner | link | issue38916 messages |
2019-12-09 13:58:48 | vstinner | create | |
|