From d993bdeac8674db88efb3c400b4a505c8f97af9e 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] --- lib/sqlalchemy/sql/operators.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/sqlalchemy/sql/operators.py') diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 4afb3db48..128442158 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -313,11 +313,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