Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r88026:317199b7bd96 Date: 2016-11-01 12:41 +0100 http://bitbucket.org/pypy/pypy/changeset/317199b7bd96/
Log: Update comment diff --git a/pypy/interpreter/typedef.py b/pypy/interpreter/typedef.py --- a/pypy/interpreter/typedef.py +++ b/pypy/interpreter/typedef.py @@ -106,8 +106,10 @@ # So we create a few interp-level subclasses of W_XxxObject, which add # some combination of features. This is done using mapdict. -# we need two subclasses of the app-level type, one to add mapdict, and then one -# to add del to not slow down the GC. +# Note that nowadays, we need not "a few" but only one subclass. It +# adds mapdict, which flexibly allows all features. We handle the +# presence or absence of an app-level '__del__' by calling +# register_finalizer() or not. @specialize.memo() def get_unique_interplevel_subclass(space, cls): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit