diff options
| author | David Malcolm <dmalcolm@redhat.com> | 2010-02-19 22:00:24 -0500 |
|---|---|---|
| committer | David Malcolm <dmalcolm@redhat.com> | 2010-02-19 22:00:24 -0500 |
| commit | 6085d356ee72935c2599a880efa6e5ef18e85134 (patch) | |
| tree | 17592e7be3b7dd35ebb3e288a5da861dd8c6ffac | |
| parent | 90b4a48d857dae4346608df9b674bbde2e6ed5fe (diff) | |
| download | libpython-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.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(): |
