<div dir="ltr">Hi all,<div><br></div><div>Recently pypy received a patch that improves the error message one gets when 'self' is missing in a method's signature:</div><div><br></div><div><a href="https://mail.python.org/pipermail/pypy-dev/2016-September/014678.html">https://mail.python.org/pipermail/pypy-dev/2016-September/014678.html</a><br></div><div><br></div><div>Here are the commits that implement the change in pypy:</div><div><br></div><div><a href="https://bitbucket.org/pypy/pypy/commits/all?search=branch(better-error-missing-self)">https://bitbucket.org/pypy/pypy/commits/all?search=branch(better-error-missing-self)</a><br></div><div><br></div><div>I'm curious whether a similar improvement would also be received well in CPython. In particular, this guides one to the correct solution for a common programming mistake made by newcomers (and even not-so-newcomers).</div><div><br></div><div>Here is a case study that found this was a common source of errors for newcomers:</div><div><br></div><div><a href="http://dl.acm.org/citation.cfm?id=2960327">http://dl.acm.org/citation.cfm?id=2960327</a><br></div><div><br></div><div>-Nathan</div></div>