3 ms·
> Classes are compiled into extension classes without __dict__ (much, but not quite, like if they used __slots__) Is there any way to say "no, a really want a
by cabalamat 6y ago
> Classes are compiled into extension classes without __dict__ (much, but not quite, like if they used __slots__)
Is there any way to say "no, a really want a __dict__ class here, please"?
- dragonwriter 6y ago> Is there any way to say "no, a really want a __dict__ class here, please"? Write it in a module you aren't compiling, and import it, since this supports compiled modules using noncompiled ones.
- Znafon 6y agoI think defining __dict__ explicitly should work.