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 adelfino
Recipients adelfino, eric.smith, serhiy.storchaka
Date 2018-05-04.13:37:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525441055.32.0.682650639539.issue33422@psf.upfronthosting.co.za>
In-reply-to
Content
To get the 144 combinations I used the logic in tokenize.py:

import re

def _combinations(*l):
    return set(
        x + y for x in l for y in l + ("",) if x.casefold() != y.casefold()
    )

_strprefixes = (
    _combinations('r', 'R', 'f', 'F') | _combinations('r', 'R', 'b', 'B') | {'u', 'U', 'ur', 'uR', 'Ur', 'UR'}
)

triple_quoted = (
    {"'''", '"""'} | {f"{prefix}'''" for prefix in _strprefixes} | {f'{prefix}"""' for prefix in _strprefixes}
)
single_quoted = (
    {"'", '"'} | {f"{prefix}'" for prefix in _strprefixes} | {f'{prefix}"' for prefix in _strprefixes}
)

all_combinations = _strprefixes | single_quoted | triple_quoted

print(' '.join(list(all_combinations)))

print(len(all_combinations))
History
Date User Action Args
2018-05-04 13:37:35adelfinosetrecipients: + adelfino, eric.smith, serhiy.storchaka
2018-05-04 13:37:35adelfinosetmessageid: <1525441055.32.0.682650639539.issue33422@psf.upfronthosting.co.za>
2018-05-04 13:37:35adelfinolinkissue33422 messages
2018-05-04 13:37:35adelfinocreate