[Python-bugs-list] [ python-Bugs-495672 ] xml.AttributesImpl: __setitem__ undef.

noreply@sourceforge.net noreply@sourceforge.net
Wed, 27 Mar 2002 14:10:12 -0800


Bugs item #495672, was opened at 2001-12-21 00: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: Closed
>Resolution: Invalid
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: 2002-03-27 23:10

Message:
Logged In: YES 
user_id=21627

Closing as not-a-bug.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2001-12-22 16: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