<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>+1</p>
<p>As an occasional Python developer I would welcome this improvement in readability of the code.</p>
<p>Andreas</p>
<p>On 2017-06-22 04:33, Nyall Dawson wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi all,<br /><br /> Been thinking about this lately, with all the excellent work which is<br /> being done on sipify and improving the usability of the PyQGIS through<br /> docstrings and such... do we want to also turn on named argument<br /> support for PyQGIS methods?<br /><br /> I gather it's just a matter of adding the annotation KeywordArgs=All<br /> to function definitions. We should be able to code this into sipify to<br /> handle this automatically.<br /><br /> I'd see the big benefit here would be readability of python code - no<br /> more someMethod( True,False, 5, None) deciphering!<br /><br /> The downside would be that the argument names would become part of<br /> stable API. We've still gots lots of unhelpful argument names (things<br /> like 's', 'c',.... ), so that's a potential downside if these get<br /> locked in (although maybe we can fix them before freeze).<br /><br /> Thoughts?<br /> Nyall<br /> _______________________________________________<br /> QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>