diff --git a/ch.py b/ch.py index 1c92c3d..f81f2fb 100755 --- a/ch.py +++ b/ch.py @@ -119,7 +119,7 @@ def parm_declarations(cls): @classmethod def setup_terms(cls): - if cls.__name__ in cls._setup_terms: return + if id(cls) in cls._setup_terms: return if cls == Ch: return @@ -147,7 +147,7 @@ def setup_terms(cls): cls.term_order = list(cls.terms) + list(cls.dterms) _check_kw_conflict(cls) - cls._setup_terms[cls.__name__] = True + cls._setup_terms[id(cls)] = True ########################################################