vurrock.blogg.se

Python latest release
Python latest release




The upcoming release of Python adds some great new features to the language and significantly improves the performance with fundamental speed-up fixes. Uuid.UUID now uses slots to reduce it's memory footprint. The overhead of converting arguments to these methods is reduced. Invocation of some simple built-ins and methods are now 20-50% faster. This makes the created list 12% smaller on average.Ĭlass variable writes are now twice as fast: when a non-dunder attribute was updated, there was an unnecessary call to update slots, which is optimized. The list constructor does not over-allocate the internal item buffer if the input iterable has a known length (the input implements len). This was made possible by optimizing argument handling and adding a fast path for the common case of a single non-negative integer index into a tuple (which is the typical use case in the standard library).įield lookups in collections.namedtuple() are now more than two times faster, making them the fastest form of instance variable lookup in Python. This release adds a number of performance speed-ups to the interpreter, following suit from the previous 3.7 release. You rarely want to compare identities with literals other than None, and a compiler warning can help avoid a number of elusive bugs. The compiler now also produces a SyntaxWarning when identity checks ( is and is not) are used with certain types of literals (e.g.

python latest release

Instead of showing TypeError: 'tuple' object is not callable which doesn't really tell you what's wrong, a helpful warning will be shown pointing out that you probably missed a comma.






Python latest release