Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...chr(item), as executed by the bytecode interpreter, is probably a bit slower than when executed by the map() function - the bytecode interpreter must execute three bytecode instructions for each call (load 'chr', load 'item', call), while the map() function does it all in C. This led us to consider a compromise, which wouldn't waste extra space, but which would speed up the lookup for the chr() function: def f4(list): string = "" lchr = chr for item...
...chr(0) + chr(255) '\texample \r\n\x00\xff' # in 2.1 '\011example \015\012\000\377' # in 2.0 Functions are now compared and hashed by identity, not by value, since the func_code attribute is writable. Weak references (PEP 205) have been added. This involves a few changes in the core, an extension module (_weakref), and a Python module (weakref). The weakref module is the public interface. It includes support for "explicit" weak references, proxy objects, and mappings wit...
...chr(), the "%c" format now accepts unicode code points beyond the Basic Multilingual Plane (above 0xffff) on all configurations. On "narrow Unicode" builds, the result is a string of 2 code units, forming a UTF-16 surrogate pair. Issue #3282: str.isprintable() should return False for undefined Unicode characters. Issue #3236: Return small longs from PyLong_FromString. Exception tracebacks now support exception chaining. Library Removed the sunaudio module. Use sunau inste...
If you didn't find what you need, try your search in the Python language documentation.