<div dir="ltr">I think we could just implement out own next method to avoid that break would be easy enough.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 15, 2017 at 11:48 PM, Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matteo and Matthias,<br>
<br>
Thanks - that works fine. I did not know that this changed in Python 3.<br>
<br>
All the poor QGIS book authors who need to rewrite their books ... about this Python changes.<br>
<br>
Helps a lot!<span class="HOEnZb"><font color="#888888"><br>
<br>
Andreas</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On 15.09.2017 15:44, matteo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Andreas,<br>
<br>
if I'm not wrong the next method is not been removed, it is a python 3 *fix*<br>
<br>
<a href="https://stackoverflow.com/questions/1073396/is-generator-next-visible-in-python-3-0" rel="noreferrer" target="_blank">https://stackoverflow.com/ques<wbr>tions/1073396/is-generator-<wbr>next-visible-in-python-3-0</a><br>
<br>
so instead of:<br>
<br>
it = layer.getFeatures()<br>
it.next()<br>
<br>
just type<br>
<br>
it = layer.getFeatures()<br>
next(it)<br>
<br>
Matteo<br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></div></div></blockquote></div><br></div>