Message413510
> 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. |
|
Date |
User |
Action |
Args |
2022-02-18 20:51:43 | Fred | set | recipients:
+ Fred, rhettinger, jwilk, remi.lapeyre, xtreak |
2022-02-18 20:51:43 | Fred | set | messageid: <1645217503.71.0.315060853772.issue35897@roundup.psfhosted.org> |
2022-02-18 20:51:43 | Fred | link | issue35897 messages |
2022-02-18 20:51:43 | Fred | create | |
|