[issue2185] code objects should conserve memory
Neal Norwitz
report at bugs.python.org
Sat Mar 15 23:47:48 CET 2008
Neal Norwitz <nnorwitz at gmail.com> added the comment:
Marshal is the wrong place for this sort of thing (the code object is
where it should be done).
I botched the analysis. The case is common, but only for the empty
tuple which I forgot to ignore. (None,) was a common case when I
measured it. We should measure the actual memory savings before
anything is implemented.
To answer your question, the case were this happens is:
def foo(self): return self.self
----------
resolution: -> rejected
status: open -> closed
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2185>
__________________________________
More information about the Python-bugs-list
mailing list