Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15283 -- Made a minor performance tweak to __iter__. Thanks to…

… lanyjie for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 337a6bc0f61fd3f72f1e2cacbb3bb5821028e44f 1 parent b01cc1b
Russell Keith-Magee authored February 12, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/models/query.py
2  django/db/models/query.py
@@ -81,7 +81,7 @@ def __len__(self):
81 81
             else:
82 82
                 self._result_cache = list(self.iterator())
83 83
         elif self._iter:
84  
-            self._result_cache.extend(list(self._iter))
  84
+            self._result_cache.extend(self._iter)
85 85
         return len(self._result_cache)
86 86
 
87 87
     def __iter__(self):

0 notes on commit 337a6bc

Please sign in to comment.
Something went wrong with that request. Please try again.