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 Andreas.Hasenkopf
Recipients Andreas.Hasenkopf
Date 2011-07-07.10:13:08
SpamBayes Score 8.953432e-06
Marked as misclassified No
Message-id <>
I'm using 64bit Arch Linux and Python 2.7.2 compiled with GCC 4.6.1.

I have noticed in several ocassions that the interpreter is complaining about

AttributeError: XMLGenerator instance has no attribute '_write' (in case of module xml.sax.saxutils.XMLGenerator)


AttributeError: RendererGDK instance has no attribute '_text2path' (in case of matplotlib when trying to use TeX formatting of text)

When I have a look into the corresponding modules I can clearly see method definitions (e.g. def _write(self, text) in line 97 of xml/sax/

I have no clue, why it is happening in some modules, but not in others. If a write my own module containing a class with a _write method it is working fine.
If I write a class derived from xml.sax.saxutils.XMLGenerator and overwrite the _write method it is known to the system, but many of the attributes beginning with an underscore appear still to be unknown...

This is very odd?!
Date User Action Args
2011-07-07 10:13:10Andreas.Hasenkopfsetrecipients: + Andreas.Hasenkopf
2011-07-07 10:13:10Andreas.Hasenkopfsetmessageid: <>
2011-07-07 10:13:09Andreas.Hasenkopflinkissue12511 messages
2011-07-07 10:13:08Andreas.Hasenkopfcreate