You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2006/10/27 08:32:08 UTC
svn commit: r468295 - /httpd/mod_python/trunk/lib/python/mod_python/util.py
Author: grahamd
Date: Thu Oct 26 23:32:07 2006
New Revision: 468295
URL: http://svn.apache.org/viewvc?view=rev&rev=468295
Log:
(MODPYTHON-93) No need to access keys of dictionary to determine len(), just
apply it to dictionary itself.
Modified:
httpd/mod_python/trunk/lib/python/mod_python/util.py
Modified: httpd/mod_python/trunk/lib/python/mod_python/util.py
URL: http://svn.apache.org/viewvc/httpd/mod_python/trunk/lib/python/mod_python/util.py?view=diff&rev=468295&r1=468294&r2=468295
==============================================================================
--- httpd/mod_python/trunk/lib/python/mod_python/util.py (original)
+++ httpd/mod_python/trunk/lib/python/mod_python/util.py Thu Oct 26 23:32:07 2006
@@ -422,7 +422,7 @@
def __len__(self):
"""Dictionary style len(x) support."""
- return len(self.list.table().keys())
+ return len(self.list.table())
def getfirst(self, key, default=None):
""" return the first value received """