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, rhettinger, xtreak
Date 2019-02-05.09:38:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549359533.5.0.566162394443.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.

Maybe the library could in the background convert the list to a tuple.

Like:
"foo".startswith(tuple(["food", "for", "fast"]))

But the programmer shouldn't have to worry about this. I have a list, I want to use the list. I shouldn't have to care about interpreter internals that have nothing to do with the intent of my code.

My code should clearly represent intent, not have boilerplate code or constructs to workaround interpreter internals.
History
Date User Action Args
2019-02-05 09:38:55Fredsetrecipients: + Fred, rhettinger, xtreak
2019-02-05 09:38:53Fredsetmessageid: <1549359533.5.0.566162394443.issue35897@roundup.psfhosted.org>
2019-02-05 09:38:53Fredlinkissue35897 messages
2019-02-05 09:38:53Fredcreate