<div dir="ltr">I thought I turned that on a while ago?<div><br></div><div>IMO +1 on this because it makes things nicer to read. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 22, 2017 at 12:33 PM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br></div>