[Python-bugs-list] [ python-Bugs-495672 ] xml.AttributesImpl: __setitem__ undef.
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 22 Dec 2001 07:13:43 -0800
Bugs item #495672, was opened at 2001-12-20 15:46
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=495672&group_id=5470
Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: xml.AttributesImpl: __setitem__ undef.
Initial Comment:
[please CC 120343@bugs.debian.org on replies; the
complete report can be seen at
http://bugs.debian.org/120343]
xml.sax.xmlreader.AttributesImpl does not have a
__setitem__ defined.
The definition is trivial (or AttributesImpl could be
written to extend
UserDict), but its lack is a minor annoyance when
writing an XML filter.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-12-22 07:13
Message:
Logged In: YES
user_id=21627
Why is this a bug? The Attributes interface in SAX is
inherently read-only, both in Java and in Python. For a
filter, write a new dictionary containing all the values
that you want to forward, and create an AttributesImpl
instance from this dictionary.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=495672&group_id=5470