]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
better comment
authorGaëtan de Menten <gdementen@gmail.com>
Fri, 20 Jun 2008 13:33:43 +0000 (13:33 +0000)
committerGaëtan de Menten <gdementen@gmail.com>
Fri, 20 Jun 2008 13:33:43 +0000 (13:33 +0000)
lib/sqlalchemy/orm/query.py

index 43a7c41a3a226f3499ccc0c28ad4ce11875becbf..c5cd0640dc3a7a7a25d033eb97ef8ffb26a2d97e 100644 (file)
@@ -913,7 +913,8 @@ class Query(object):
     def __getitem__(self, item):
         if isinstance(item, slice):
             start, stop, step = util.decode_slice(item)
-            # if we slice from the end we need to execute the query
+            # if we slice from the end we need to execute the query before
+            # slicing
             if start < 0 or stop < 0:
                 return list(self)[item]
             else: