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 rhettinger
Recipients Dennis Sweeney, doerwalter, eric.smith, gvanrossum, rhettinger, steven.daprano, vstinner, xtreak
Date 2020-04-20.21:58:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587419906.27.0.953216159029.issue39939@roundup.psfhosted.org>
In-reply-to
Content
I disagree with the rationale given in the PEP.  The reason that "startswith" and "endswith" don't have underscores is that the aren't needed to disambiguate the text.  Our rules are to add underscores when it improves readability, which in this case it does.   Like casing conventions, these rules became prevent after the early modules were created (i.e. the older the module, the more likely that it doesn't follow modern conventions).

We only have one chance to get this right.  Take it from someone with experience with this particular problem.  I created imap() but later regretted the naming pattern when if came to ifilter() and islice() which sometimes cause mental hiccups initially being read as if-ilter and is-lice.
History
Date User Action Args
2020-04-20 21:58:26rhettingersetrecipients: + rhettinger, gvanrossum, doerwalter, vstinner, eric.smith, steven.daprano, xtreak, Dennis Sweeney
2020-04-20 21:58:26rhettingersetmessageid: <1587419906.27.0.953216159029.issue39939@roundup.psfhosted.org>
2020-04-20 21:58:26rhettingerlinkissue39939 messages
2020-04-20 21:58:26rhettingercreate