rset.py
changeset 10691 af266f27c4d5
parent 10687 d394bfcd8c25
child 10903 da30851f9706
--- a/rset.py	Wed Sep 16 15:50:42 2015 +0200
+++ b/rset.py	Wed Sep 16 15:26:56 2015 +0200
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """The `ResultSet` class which is returned as result of an rql query"""
-
+from __future__ import print_function
 __docformat__ = "restructuredtext en"
 
 from warnings import warn
@@ -121,12 +121,9 @@
 
     def __getitem__(self, i):
         """returns the ith element of the result set"""
+        #print('__getitem__', i)
         return self.rows[i] #ResultSetRow(self.rows[i])
 
-    def __getslice__(self, i, j):
-        """returns slice [i:j] of the result set"""
-        return self.rows[i:j]
-
     def __iter__(self):
         """Returns an iterator over rows"""
         return iter(self.rows)