[Python-Dev] How to suppress instance __dict__?

Michael Hudson mwh@python.net
Sun, 23 Mar 2003 13:08:30 +0000

David Abrahams <dave@boost-consulting.com> writes:

> Unfortunately, this is one of the twistiest areas of the Python
> source, so while I could struggle through it I'm hoping there's
> someone around here who knows the answer off the top of his benevolent
> Dutch head <wink>

Well, I'm familiar enough with that bit of the source (search for
"add_dict" in typeobject.c) to answer your question: no, there's no
more straightforward way to suppress the instance __dict__ in the
derived classes.


 The rapid establishment of social ties, even of a fleeting nature,
 advance not only that goal but its standing in the uberconscious
 mesh of communal psychic, subjective, and algorithmic interbeing.
 But I fear I'm restating the obvious.  -- Will Ware, comp.lang.python