[issue5382] Allow Python keywords as keyword arguments for functions.

Georg Brandl report at bugs.python.org
Fri Feb 27 18:27:27 CET 2009

Georg Brandl <georg at python.org> added the comment:

This is not going to happen:

First, function call syntax is nicely parallel to parameter definition
syntax, and it is obviously not possible to define parameters named like

Second, making exceptions like this leads to more exceptions and finally
inconsistencies. People will say "if it's allowed here, why not there
too, where it is grammatically unambiguous". Quoting the Zen: Special
cases aren't special enough to break the rules.

PS: In addition to what David Lambert and Matthew said, you could also
lower() all attributes on generation and use

xhtmlNode('div', Class='sidebar')

nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list