[Python-Dev] How to suppress instance dict? (original) (raw)
Martin v. L�wis martin@v.loewis.de
23 Mar 2003 09:24:51 +0100
- Previous message: [Python-Dev] How to suppress instance __dict__?
- Next message: [Python-Dev] How to suppress instance __dict__?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
David Abrahams <dave@boost-consulting.com> writes:
Yes, I can define getstate, setstate, and getinitargs (the only one that can actually do any work, since ints are immutable), but I was wondering if there's a more straightforward way to suppress the instance dict in the derived classes.
Setting tp_dictoffset to 0 might help. However, I'm unsure what consequences this has; read the source.
Regards, Martin
- Previous message: [Python-Dev] How to suppress instance __dict__?
- Next message: [Python-Dev] How to suppress instance __dict__?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]