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 Fred
Recipients Fred, jwilk, remi.lapeyre, rhettinger, xtreak
Date 2022-02-18.20:51:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645217503.71.0.315060853772.issue35897@roundup.psfhosted.org>
In-reply-to
Content
> For subtle reasons, that would make us worse off.  Tuple of constants get precomputed but lists of constants have to be rebuilt.

So if a list is 20 times slower than a tuple, I can still do billions of computations in a second on a Raspberry Pi, so does it matter?

Being able to pass a list into .startswith() makes it more user-friendly and makes Python be more productive for the developer.
History
Date User Action Args
2022-02-18 20:51:43Fredsetrecipients: + Fred, rhettinger, jwilk, remi.lapeyre, xtreak
2022-02-18 20:51:43Fredsetmessageid: <1645217503.71.0.315060853772.issue35897@roundup.psfhosted.org>
2022-02-18 20:51:43Fredlinkissue35897 messages
2022-02-18 20:51:43Fredcreate