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 malin
Recipients malin, matpi
Date 2020-06-16.15:33:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592321619.24.0.459268861234.issue40980@roundup.psfhosted.org>
In-reply-to
Content
> this limitation to the latin-1 subset is not compatible with the documentation, which says that valid Python identifiers are valid group names.

Not all latin-1 characters are valid identifier, for example:

    >>> '\x94'.encode('latin1')
    b'\x94'
    >>> '\x94'.isidentifier()
    False

There is a workaround, you can convert `bytes` to `str` with "latin-1" decoder before processing, IIRC there will be no extra overhead (memory/speed) during processing, then the name and content are the same type. :)
History
Date User Action Args
2020-06-16 15:33:39malinsetrecipients: + malin, matpi
2020-06-16 15:33:39malinsetmessageid: <1592321619.24.0.459268861234.issue40980@roundup.psfhosted.org>
2020-06-16 15:33:39malinlinkissue40980 messages
2020-06-16 15:33:39malincreate