summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2010-02-19 22:00:24 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2010-02-19 22:00:24 -0500
commit6085d356ee72935c2599a880efa6e5ef18e85134 (patch)
tree17592e7be3b7dd35ebb3e288a5da861dd8c6ffac
parent90b4a48d857dae4346608df9b674bbde2e6ed5fe (diff)
downloadlibpython-6085d356ee72935c2599a880efa6e5ef18e85134.tar.gz
libpython-6085d356ee72935c2599a880efa6e5ef18e85134.tar.xz
libpython-6085d356ee72935c2599a880efa6e5ef18e85134.zip
Dict slots are in the interval [0,ma_mask], rather than [0, ma_mask)
-rw-r--r--libpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpython.py b/libpython.py
index e353379..1ede863 100644
--- a/libpython.py
+++ b/libpython.py
@@ -267,7 +267,7 @@ class PyDictObjectPtr(PyObjectPtr):
def proxyval(self):
result = {}
- for i in safe_range(self.field('ma_mask')):
+ for i in safe_range(self.field('ma_mask')+1):
ep = self.field('ma_table') + i
pvalue = PyObjectPtr.from_pyobject_ptr(ep['me_value'])
if not pvalue.is_null():