[issue10021] Format parser is too permissive

Benjamin Peterson report at bugs.python.org
Mon Oct 4 18:58:47 CEST 2010


Benjamin Peterson <benjamin at python.org> added the comment:

2010/10/4 Eric Smith <report at bugs.python.org>:
>
> Eric Smith <eric at trueblade.com> added the comment:
>
> Right. It seemed like a hassle to have the str.format parser try to figure out what a valid identifier is, so it just passes it through.

You can always use "str.isidentifier()" (I don't remember if there's a capi).

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list