summaryrefslogtreecommitdiffstats
path: root/docs/osmesa.html
diff options
context:
space:
mode:
authorMathieu Bridon <[email protected]>2018-07-05 15:17:39 +0200
committerDylan Baker <[email protected]>2018-07-24 11:07:04 -0700
commit022d2a381d32d24aabe2c54704a5a5e2440a75e9 (patch)
tree587757745b212fef0f3c5ac9985b754963cb791e /docs/osmesa.html
parent01da2feb0edd36abb161d96ccd6020c4b358da91 (diff)
python: Better use iterators
In Python 2, iterators had a .next() method. In Python 3, instead they have a .__next__() method, which is automatically called by the next() builtin. In addition, it is better to use the iter() builtin to create an iterator, rather than calling its __iter__() method. These were also introduced in Python 2.6, so using it makes the script compatible with Python 2 and 3. Signed-off-by: Mathieu Bridon <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'docs/osmesa.html')
0 files changed, 0 insertions, 0 deletions