STINNER Victor <vstin...@python.org> added the comment: 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. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Remove array.fromstring -> Remove array.fromstring() and array.tostring() aliases, deprecated since Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38916> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com