Message82837
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. |
|
Date |
User |
Action |
Args |
2009-02-27 16:25:38 | Imagist | set | recipients:
+ Imagist |
2009-02-27 16:25:38 | Imagist | set | messageid: <1235751938.62.0.212144531806.issue5382@psf.upfronthosting.co.za> |
2009-02-27 16:25:22 | Imagist | link | issue5382 messages |
2009-02-27 16:25:22 | Imagist | create | |
|