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 Dennis Sweeney
Recipients Dennis Sweeney, doerwalter, eric.smith, gvanrossum, rhettinger, steven.daprano, vstinner, xtreak
Date 2020-04-22.00:11:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587514271.2.0.381352900031.issue39939@roundup.psfhosted.org>
In-reply-to
Content
I'm personally -0 for underscores -- they might slightly improve readability of the function name in isolation but may also add confusion about which methods have underscores.  Only one out of the 45 non-dunder str methods has an underscore right now:

    >>> meths = [x for x in dir(str) if not x.startswith('__')]
    >>> [x for x in meths if '_' in x]
    ['format_map']
    >>> [x for x in meths if '_' not in x]
    ['capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']

Maybe I'm wrong, but it seemed to me that most of the discussions to date had arrived at leaving out underscores.  Is there a process or appropriate channel to continue this discussion now that the PEP is accepted?
History
Date User Action Args
2020-04-22 00:11:11Dennis Sweeneysetrecipients: + Dennis Sweeney, gvanrossum, doerwalter, rhettinger, vstinner, eric.smith, steven.daprano, xtreak
2020-04-22 00:11:11Dennis Sweeneysetmessageid: <1587514271.2.0.381352900031.issue39939@roundup.psfhosted.org>
2020-04-22 00:11:11Dennis Sweeneylinkissue39939 messages
2020-04-22 00:11:11Dennis Sweeneycreate