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 <1310033590.5.0.471814241717.issue12511@psf.upfronthosting.co.za>
In-reply-to
Content
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)

or

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/saxutils.py

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?!
History
Date User Action Args
2011-07-07 10:13:10Andreas.Hasenkopfsetrecipients: + Andreas.Hasenkopf
2011-07-07 10:13:10Andreas.Hasenkopfsetmessageid: <1310033590.5.0.471814241717.issue12511@psf.upfronthosting.co.za>
2011-07-07 10:13:09Andreas.Hasenkopflinkissue12511 messages
2011-07-07 10:13:08Andreas.Hasenkopfcreate