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 vstinner
Recipients amaury.forgeotdarc, arigo, ghaering, iritkatriel, jcea, lkraav, pablogsal, pitrou, pxd, vstinner
Date 2021-02-15.22:40:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> That's a lot slower unfortunately

Ah sorry, I forgot PyTuple_Pack(3, item1, item2, item3) which should be very efficient. This function is also safe: only track the tuple when it is fully initialized.

> This problem also is not unique to tuples, although is mainly prominent in them.

PyList_New() is also affected. Do you think about other types?

PyDict_New() and PySet_New() create empty containers and so are ok.
Date User Action Args
2021-02-15 22:40:58vstinnersetrecipients: + vstinner, arigo, jcea, ghaering, amaury.forgeotdarc, pitrou, lkraav, pxd, pablogsal, iritkatriel
2021-02-15 22:40:58vstinnersetmessageid: <>
2021-02-15 22:40:58vstinnerlinkissue15108 messages
2021-02-15 22:40:57vstinnercreate