Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > When is a __dict__ not a __dict__?

Reply
Thread Tools

When is a __dict__ not a __dict__?

 
 
Derek Fountain
Guest
Posts: n/a
 
      04-21-2004
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.
 
Reply With Quote
 
 
 
 
John Roth
Guest
Posts: n/a
 
      04-21-2004

"Derek Fountain" <(E-Mail Removed)> wrote in message
news:4085f2a4$0$16601$(E-Mail Removed). 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
assigning a custom mapping type to __dict__ Steven Bethard Python 8 03-02-2005 02:18 PM
__slots__ vs __dict__ Jean Brouwers Python 5 05-13-2004 04:20 PM
RE: __slots__ vs __dict__ Hornberger, Chris Python 1 05-12-2004 09:35 PM
__slots__ replacing __dict__ function anabell@sh163.net Python 1 11-06-2003 09:16 AM
obj.__dict__ expected behavior or bug? Ed Young Python 4 08-10-2003 10:50 AM



Advertisments