diff options
| author | David Malcolm <dmalcolm@redhat.com> | 2010-02-23 10:33:05 -0500 |
|---|---|---|
| committer | David Malcolm <dmalcolm@redhat.com> | 2010-02-23 10:33:05 -0500 |
| commit | de5644a7091197366da12eaafa71f739a20926a9 (patch) | |
| tree | 17592e7be3b7dd35ebb3e288a5da861dd8c6ffac | |
| parent | 90b4a48d857dae4346608df9b674bbde2e6ed5fe (diff) | |
| download | libpython-de5644a7091197366da12eaafa71f739a20926a9.tar.gz libpython-de5644a7091197366da12eaafa71f739a20926a9.tar.xz libpython-de5644a7091197366da12eaafa71f739a20926a9.zip | |
Dict slot indexes are in the range [0, ma_used], rather than [0, ma_used)
| -rw-r--r-- | libpython.py | 2 |
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(): |
