[docs] [issue10021] Format parser is too permissive

Benjamin Peterson benjamin at python.org
Mon Oct 4 18:58:43 CEST 2010

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).


More information about the docs mailing list