469,622 Members | 2,199 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

When is a __dict__ not a __dict__?

Am I correct in thinking that a Python object which comes from a bit of C
code doesn't have a __dict__ attribute? I'm trying to poke around inside
the objects which control the expat XML parser, but they don't seem to have
__dict__s.
Jul 18 '05 #1
1 1291

"Derek Fountain" <de*****@example.com> wrote in message
news:40***********************@freenews.iinet.net. au...
Am I correct in thinking that a Python object which comes from a bit of C
code doesn't have a __dict__ attribute? I'm trying to poke around inside
the objects which control the expat XML parser, but they don't seem to have __dict__s.


It depends on the object. Some do, many don't.

John Roth
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ed Young | last post: by
1 post views Thread by anabell | last post: by
5 posts views Thread by Jean Brouwers | last post: by
8 posts views Thread by Steven Bethard | last post: by
1 post views Thread by Donnal Walter | last post: by
8 posts views Thread by Steven D'Aprano | last post: by
7 posts views Thread by Georg Brandl | last post: by
5 posts views Thread by inhahe | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.