From 33d3e11cbf596c64abc3ced1d5aa01989afe0ad8 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 3 Jun 2013 16:32:12 -0400 Subject: - remove the ``__iter__()`` with notimplemented since it interferes with legitimate iterable detection, [ticket:2726] Conflicts: doc/build/changelog/changelog_09.rst --- lib/sqlalchemy/sql/operators.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index a7e6af116..6f3705661 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -310,11 +310,6 @@ class ColumnOperators(Operators): """ return self.operate(neg) - def __iter__(self): - """Block calls to list() from calling __getitem__() endlessly.""" - - raise NotImplementedError("Class %s is not iterable" % self.__class__) - def __getitem__(self, index): """Implement the [] operator. -- cgit v1.2.1