bytes % args, bytearray % args: PEP 461 - Adding % formattingto bytes and bytearray
b'\xf0\x9f\x90\x8d'.hex(), bytearray(b'\xf0\x9f\x90\x8d').hex(),memoryview(b'\xf0\x9f\x90\x8d').hex(): issue 9951 - A hex methodhas been added to bytes, bytearray, and memoryview.
改进:
When the LC_TYPE locale is the POSIX locale (C locale),sys.stdin and sys.stdout are now using thesurrogateescape error handler, instead of the strict error handler(issue 19977).
PEP 488, the elimination of .pyo files.
PEP 489, multi-phase initialization of extension modules.