Message334881
> A programmer want to instruct the computer to do something, without having to care about how it works.
This is not true, as a programmer you need to choose carefully your data structures because they matter, for example there is a difference between doing a lookup on an indexed field in an SQL database and a field that is not indexed. As a programmer you care because it impacts the performance of your application.
The linked discussion explains the difference between list and tuple in this instance.
@rhettinger: while this is not hard to fix, there is no mention in the documentation about why this choice has been made. A beginner don't know about the internals of cPython, should we add a small note about the optimization done with tuple? |
|
Date |
User |
Action |
Args |
2019-02-05 18:20:05 | remi.lapeyre | set | recipients:
+ remi.lapeyre, rhettinger, xtreak, Fred |
2019-02-05 18:20:03 | remi.lapeyre | set | messageid: <1549390803.05.0.931515113452.issue35897@roundup.psfhosted.org> |
2019-02-05 18:20:03 | remi.lapeyre | link | issue35897 messages |
2019-02-05 18:20:02 | remi.lapeyre | create | |
|