homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients brett.cannon, eric.snow, kimiguel, pablogsal, rhettinger
Date 2020年03月02日.15:44:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583163840.41.0.709822381633.issue39829@roundup.psfhosted.org>
In-reply-to
Content
Why should that be backwards incompatible? The number of times we can `__len__` on the constructor is an implementation detail. The reason is called now twice is because there is an extra check for the preallocation logic, which is detached from the logic of the subsequent list_extend(self, iterable). 
On the other hand, there may be a chance for optimization here, but on a very rough first plan, that may require coupling some logic (passing down the calculated length to list_extend() or some helper, which I am not very fond of.
History
Date User Action Args
2020年03月02日 15:44:00pablogsalsetrecipients: + pablogsal, brett.cannon, rhettinger, eric.snow, kimiguel
2020年03月02日 15:44:00pablogsalsetmessageid: <1583163840.41.0.709822381633.issue39829@roundup.psfhosted.org>
2020年03月02日 15:44:00pablogsallinkissue39829 messages
2020年03月02日 15:44:00pablogsalcreate

AltStyle によって変換されたページ (->オリジナル) /