[Python] Implement __next__ for value_iter
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 4 Sep 2019 18:59:13 +0000 (18:59 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 4 Sep 2019 18:59:13 +0000 (18:59 +0000)
commit6eef8e01c7654acf417d3ad81fb6cb5cfc6edc2f
treeafb7bcf88b0d95bf242e5d3a9ebf7299df1b7da4
parent24223eb24c74a116e1a3eb704d28e61454719a74
[Python] Implement __next__ for value_iter

Python 3 iteration calls the next() method instead of next() and
value_iter only implemented the Python 2 version.

Differential revision: https://reviews.llvm.org/D67184

llvm-svn: 370954
lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
lldb/scripts/Python/python-extensions.swig