Notice: This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.
...optimization is in order. The dummy entry avoids searching the package's path when the same global module is imported from the second time by a submodule of the same package. Dummy entries are only created for modules that are found at the top level; if the module is not found at all, the import fails and the optimization is generally not needed. Moreover, in interactive use, the user could create the module as a package-local submodule and retry the import; if a dummy entry had been ...
Version: None
Released: Dec. 3, 2024
This is the first maintenance release of Python 3.13 Python 3.13 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. 3.13.1 is the latest maintenance release, containing almost 400 bugfixes, build improvements and documentation changes since …
View Release Notes
...Optimization: We knew there was a chance that profiling would later reveal that small portions of our application were time-critical, and therefore might need to be re-coded in C or C++. Python integrates seamlessly with these languages, so you truly can "have your cake and eat it too" by coding only small profiler-identified portions of your code in C or C++, and using the built-in higher-level abstractions of Python for rapid development of the rest of your application. Scriptability...
...performance, thread-safe, memory friendly appends and pops on either side of the deque. Several modules now take advantage of collections.deque() for improved performance: Queue, mutex, shlex, threading, and pydoc. The operator module has two new functions, attrgetter() and itemgetter() which are useful for creating fast data extractor functions for map(), list.sort(), itertools.groupby(), and other functions that expect a function argument. socket.SHUT_{RD,WR,RDWR} was added. os.getsid was add...
...optimization framework which builds upon Numpy. In addition to various numerical optimization packages, it includes: FuncDesigner - a tool to rapidly build functions over variables/arrays and get their derivatives via automatic differentiation. Also, one can perform integration, interpolation, solve systems of linear/nonlinear/ODE equations and numerical optimization problems coded in FuncDesigner by OpenOpt. DerApproximator - a tool to get (or check user-supplied) derivatives via finite-differe...
...performance-critical code to equate one line of Python with ten lines of C or C++ code. This means that about 5-10% of our application functionality is in C or C++ and the rest is in Python. Even considering that the C/C++ code is somewhat more complex than most of the Python code, these results confirm without any doubt that working in Python is far more productive than working in C or C++. In hindsight, we believe that we could have converted smaller units of code into C, by writing more gener...
...performance reasons, the eval() implementation in Python accepts only built-in dictionary types and not an emulated mapping type, so we had to engage in some extra trickery to make our on-demand dependency system work with equations. Nevertheless, the entire implementation was quite easy. Results PyDrone took about 3 months of development time, another 3 months of QA, and 3 weeks of documentation time to produce about 5,600 lines of finished Python code. Overall PyDrone has been a wonderful su...
...Performance may be sub-optimal (haven't really benchmarked). 'except E, V' must now be spelled as 'except E as V' and deletes V at the end of the except clause; V must be a simple name. Added function annotations per PEP 3107. Added nonlocal declaration from PEP 3104: >>> def f(x): ... def inc(): ... nonlocal x ... x += 1 ... return x ... return inc ... >>> inc = f(0) >>> inc() 1 >>> inc() 2 Moved intern() to sys.intern()....
...performance. If it proves to be too much of a problem, we'll turn it off by default in the final 2.0 release. Smaller Changes A new function 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 t...
...performance issues when an instance was tested for equality with None. Bug #848614: distutils' msvccompiler fails to find the MSVC6 compiler because of incomplete registry entries. Patch #841977: modulefinder didn't find extension modules in packages. Bug #792101: Add missing file operations for httplib.SSLFile. Bug #811082: test_tempfile fails if space in install directory. Bug #780461: platform.mac_ver() raised MacOSError exception under OS X. Bug #812202: random.randrange() returned only even...
...performance as Executive Director and relentless dedication to the staff and community as well as for her growth in responsibility and in the role. Moved by Christopher Neugebauer. (refer to https://www.python.org/psf/records/board/minutes/2021-07-22/#special-meetings for all relevant resolutions) Approved, 9-0-0, 2021-06-11 RESOLVED, that the Python Software Foundation Grants Work Group grant $2100 USD to the PyCon Colombia conference happening virtually June 19, 2021 Approved, 6-0-0, 2021-0...
If you didn't find what you need, try your search in the Python language documentation.