[issue17447] str.identifier shouldn't accept Python keywords

Ezio Melotti report at bugs.python.org
Sat Mar 23 15:12:24 CET 2013


Ezio Melotti added the comment:

IMHO str.isidentifier() should not return False for Python keywords, since it's often used in contexts where Python keywords would otherwise be valid.  A keyword arg to exclude keywords could be added though, assuming there are enough use cases.

----------
nosy: +ezio.melotti
type: behavior -> enhancement
versions:  -Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17447>
_______________________________________


More information about the Python-bugs-list mailing list