From de5644a7091197366da12eaafa71f739a20926a9 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 23 Feb 2010 10:33:05 -0500 Subject: Dict slot indexes are in the range [0, ma_used], rather than [0, ma_used) --- libpython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpython.py') 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(): -- cgit