[ python-Bugs-1572710 ] cElementTree.SubElement doesn't recognize keyword "attrib"
SourceForge.net
noreply at sourceforge.net
Sat Oct 7 15:05:25 CEST 2006
Bugs item #1572710, was opened at 2006-10-07 14:32
Message generated for change (Comment added) made by effbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1572710&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: XML
Group: Python 2.5
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Mark Stephens (hugesmile)
Assigned to: Nobody/Anonymous (nobody)
Summary: cElementTree.SubElement doesn't recognize keyword "attrib"
Initial Comment:
Calling the c routine cElementTree with the keyword
"attrib" fails. This works in the python version
(ElementTree).
Example:
head = ET.SubElement(root, "head", attrib={"dir":"ltr"})
Python version 2.5, Windows version XP Professional
2002, Service Pack 2
----------------------------------------------------------------------
>Comment By: Fredrik Lundh (effbot)
Date: 2006-10-07 15:05
Message:
Logged In: YES
user_id=38376
The first two arguments in the ET interface are positional
arguments, not keyword arguments.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1572710&group_id=5470
More information about the Python-bugs-list
mailing list