Notice: This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.
Version: None
Released: May 30, 2018
This is a beta preview of Python 3.7 Python 3.7 is still in development. This release, 3.7.0b5, is now the final planned beta release preview. Originally, 3.7.0b4 was intended to be the final beta but, due to some unexpected compatibility issues discovered during beta testing of third-party packages, …
View Release Notes
...zip() was added. zip(seq1, seq2, ...) is equivalent to map(None, seq1, seq2, ...) when the sequences have the same length; i.e. zip([1,2,3], [10,20,30]) returns [(1,10), (2,20), (3,30)]. When the lists are not all the same length, the shortest list wins: zip([1,2,3], [10,20]) returns [(1,10), (2,20)]. See PEP 201. sys.version_info is a tuple (major, minor, micro, level, serial). Dictionaries have an odd new method, setdefault(key, default). dict.setdefault(key, default) returns dic...
...ZIP codes. Reusing Objects Everywhere Once the database API was complete, we created a second layer of classes on top of it. This higher level API implements the business logic for specific applications, such as contact management or trouble ticket handling. It also prevents users from performing operations that are inconsistent with Rackspace's business practices, or assigning data that would result in other types of high-level corruption of the data in the database. With the creation of thi...
...zipfile - read and write zip archives. codecs - support for Unicode encoders/decoders. unicodedata - provides access to the Unicode 3.0 database. _winreg - Windows registry access. encodings - package which provides a large set of standard codecs -- currently only for the new Unicode support. It has a drop-in extension mechanism which allows you to add new codecs by simply copying them into the encodings package directory. Asian codec support will probably be made available as se...
...zip() moved to bultins and renamed to filter(), map(), and zip(). Also, renamed izip_longest() to zip_longest() and ifilterfalse() to filterfalse(). Issue #1762972: Readded the reload() function as imp.reload(). Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ. Issue #2063: correct order of utime and stime in os.times() result on Windows. Library Weakref dictionaries now inherit from MutableMapping. Created new UserDict class in collections module. This one inhe...
...zipfile - read and write zip archives. codecs - support for Unicode encoders/decoders. unicodedata - provides access to the Unicode 3.0 database. _winreg - Windows registry access. encodings - package which provides a large set of standard codecs -- currently only for the new Unicode support. It has a drop-in extension mechanism which allows you to add new codecs by simply copying them into the encodings package directory. Asian codec support will probably be made available as separate distribut...
...Zip Archives - Ahlstrom I like this concept. I haven't studied the PEP or the proposed implementation in detail, so I don't know if it always does the right thing. I hope that it will make it into 2.3. PEP 274 - Dict Comprehensions - Warsaw If we were to adopt dict comprehensions, this PEP says everything that needs to be said. But I don't even want to think about this for Python 2.3; I think it's way too minor a feature. This would be a lot easier to adopt if there was a wo...
...zipfiles is now supported. The name of a zipfile placed on sys.path causes the import statement to look for importable Python modules (with .py, pyc and .pyo extensions) and packages inside the zipfile. The zipfile import follows the specification (though not the sample implementation) of PEP 273. The semantics of __path__ are compatible with those that have been implemented in Jython since Jython 2.1. PEP 302 has been accepted. Although it was initially developed to support zipimport, it o...
...zipfile.ZipFile() with mode "w", not "wb" (which is not a valid mode at all). Fix pstats browser crashes. Import readline if it exists to make the user interface nicer. Add "import thread" to the top of test modules that import the threading module (test_asynchat and test_threadedtempfile). This prevents test failures caused by a broken threading module resulting from a previously caught failed import. Changed test_asynchat.py to set the SO_REUSEADDR option; this ...
...zip.GzipFile has a new fileno() method, to retrieve the handle of the underlying file object (provided it has a fileno() method). This is needed if you want to use os.fsync() on a GzipFile. imaplib has two new methods: deleteacl and myrights. nntplib has two new methods: description and descriptions. They use a more RFC-compliant way of getting a newsgroup description. Bug #993394. Fix a possible red herring of KeyError in 'threading' being raised during interpreter shutdown from a register...
If you didn't find what you need, try your search in the Python language documentation.