From 82070dd0c719f7683e47c3983f949c64a46b92f9 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Tue, 16 Mar 2021 23:56:28 +0100 Subject: Added back ``items`` and ``values`` to ``ColumnCollection`` class. Fixes: #6068 Change-Id: Idb42c864e17c02d7b89cffa667dcf853ec93e5c2 --- lib/sqlalchemy/sql/base.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index c76c9ae14..726800717 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -1126,6 +1126,12 @@ class ColumnCollection(object): def keys(self): return [k for (k, col) in self._collection] + def values(self): + return [col for (k, col) in self._collection] + + def items(self): + return list(self._collection) + def __bool__(self): return bool(self._collection) -- cgit v1.2.1