Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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"?



> 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.


I think defining __dict__ explicitly should work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: