Tim Peters <tim.one@comcast.net> writes: > Note too that people can get back more memory than gc consumes by declaring > new-style classes to use __slots__. That's a new memory-optimization > gimmick, and an effective one. Is there *any* other way to get the same effect as '__slots__ = []' except inserting this is the code? A flag in the C coded base class? I constantly forget to use this in subclasses I define. I know I can use a __metaclass__ for this, but I'm looking for other ways. Thomas
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4