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 Imagist
Recipients Imagist
Date 2009-02-27.16:25:22
SpamBayes Score 0.0031374146
Marked as misclassified No
Message-id <1235751938.62.0.212144531806.issue5382@psf.upfronthosting.co.za>
In-reply-to
Content
This problem arose in this thread:
http://www.python-forum.org/pythonforum/viewtopic.php?f=2&t=11606

Basically, we have the following function which will generate an XHTML 
node:

def xhtmlNode(tag, **attr):...

If we call:

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

... it should generate the xhtml:

<div class='sidebar'></div>

However, this isn't possible because the 'class' keyword in Python 
blocks it.  Since this is a key in a dictionary (attr['class']) this 
shouldn't be a problem.  As far as I know, there is no parsing issue 
with this either.

Could we allow Python keywords to be keyword arguments?  The use case 
above shows that this is useful in a real-life situation.
History
Date User Action Args
2009-02-27 16:25:38Imagistsetrecipients: + Imagist
2009-02-27 16:25:38Imagistsetmessageid: <1235751938.62.0.212144531806.issue5382@psf.upfronthosting.co.za>
2009-02-27 16:25:22Imagistlinkissue5382 messages
2009-02-27 16:25:22Imagistcreate