Showing content from http://mail.python.org/pipermail/python-dev/attachments/20180802/c39ff3ee/attachment.html below:
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 1, 2018 at 2:40 PM, Armin Rigo <span dir="ltr"><<a href="mailto:armin.rigo@gmail.com" target="_blank">armin.rigo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 30 July 2018 at 22:19, Chris Barker via Python-Dev<br>
<<a href="mailto:python-dev@python.org">python-dev@python.org</a>> wrote:<br>
> Oh well. This is a serious usability issue -- but what can you do?<br>
<br>
I think that argument clinic knows if the built-in function is<br>
supposed to be a method or a function. It doesn't look too hard to<br>
add a new flag METH_IS_METHOD or something, which would be taken in<br>
consideration in the common cases, and which can be added manually OR<br>
used automatically by argument clinic. This would not be a 100%<br>
solution out of the box, but if the new wording is right, it shouldn't<br>
be a problem.<br></blockquote><div><br></div><div>But can you do the same thing with pure-python methods?</div><div><br></div><div>After all, this thread started with trying ot unify what error folks get regardless of how the method was written.</div><div><br></div><div><br></div><div>-CHB</div><div><br></div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R Â Â Â Â Â Â (206) 526-6959Â Â voice<br>7600 Sand Point Way NE Â Â (206) 526-6329Â Â fax<br>Seattle, WA Â 98115 Â Â Â Â (206) 526-6317Â Â main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4