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 remi.lapeyre
Recipients Fred, remi.lapeyre, rhettinger, xtreak
Date 2019-02-05.18:20:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549390803.05.0.931515113452.issue35897@roundup.psfhosted.org>
In-reply-to
Content
> 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?
History
Date User Action Args
2019-02-05 18:20:05remi.lapeyresetrecipients: + remi.lapeyre, rhettinger, xtreak, Fred
2019-02-05 18:20:03remi.lapeyresetmessageid: <1549390803.05.0.931515113452.issue35897@roundup.psfhosted.org>
2019-02-05 18:20:03remi.lapeyrelinkissue35897 messages
2019-02-05 18:20:02remi.lapeyrecreate