Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 5 Doc/whatsnew/3.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ Optimizations
Note that this means that instances can no longer be weak-referenced and
that arbitrary attributes can no longer be added to them.

* The :class:`list` constructor does not overallocate the internal item buffer
if the input iterable has a known length (the input implements ``__len__``).
This makes the created list 12% smaller on average. (Contributed by Pablo
Galindo in :issue:`33234`.)


Build and C API Changes
=======================
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.