diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-23 13:09:43 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-23 13:09:43 -0400 |
commit | bce3ffc3412737eae51cfe2ba231c6d1366a7d16 (patch) | |
tree | f82e11b578a212af9e1f809c4b2d1856a3b54fcd /lib/sqlalchemy/sql/expression.py | |
parent | 152163b3336970460b605fc2a79766d94f467f8d (diff) | |
download | sqlalchemy-bce3ffc3412737eae51cfe2ba231c6d1366a7d16.tar.gz |
- use our new Cls.memoized_name._reset(self) method in place of all those __dict__.pop(),
remove reset_memoized
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
-rw-r--r-- | lib/sqlalchemy/sql/expression.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index f00926e4d..63b1a4037 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -1604,8 +1604,8 @@ class ClauseElement(Visitable): """ c = self.__class__.__new__(self.__class__) c.__dict__ = self.__dict__.copy() - c.__dict__.pop('_cloned_set', None) - c.__dict__.pop('comparator', None) + ClauseElement._cloned_set._reset(c) + ColumnElement.comparator._reset(c) # this is a marker that helps to "equate" clauses to each other # when a Select returns its list of FROM clauses. the cloning @@ -2410,7 +2410,7 @@ class ColumnCollection(util.OrderedProperties): # pop out memoized proxy_set as this # operation may very well be occurring # in a _make_proxy operation - value.__dict__.pop('proxy_set', None) + ColumnElement.proxy_set._reset(value) self._all_cols.add(value) self._data[key] = value @@ -3432,7 +3432,7 @@ class FunctionElement(Executable, ColumnElement, FromClause): def _copy_internals(self, clone=_clone, **kw): self.clause_expr = clone(self.clause_expr, **kw) self._reset_exported() - util.reset_memoized(self, 'clauses') + FunctionElement.clauses._reset(self) def select(self): """Produce a :func:`~.expression.select` construct |