[Python-Dev] PEP 454 - tracemalloc - accepted

Eric Snow ericsnowcurrently at gmail.com
Fri Nov 22 01:40:48 CET 2013


On Thu, Nov 21, 2013 at 4:17 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Skipping saving _source under -OO would probably be a good thing, but
> otherwise it's a public API with the usual backwards compatibility
> guarantees.

One alternative might be to make it a property that re-generates the
source (you just need self.__class__.__name__ and self._fields).

-eric


More information about the Python-Dev mailing list