[Python-ideas] Improve error message when missing 'self' in method definition

Stephan Houben stephanh42 at gmail.com
Wed Oct 5 14:09:17 EDT 2016


+∞

Another long-time user here who occasionally still makes this mistake.

Stephan

2016-10-05 19:29 GMT+02:00 Paul Moore <p.f.moore at gmail.com>:

> On 5 October 2016 at 18:17, Lisa Roach <lisaroach14 at gmail.com> wrote:
> > +1
> >
> > I've definitely seen a lot of new users make this error, an improved
> message
> > could go a long way.
>
> I'm not a new user by any means, and I still regularly make this
> mistake. Because I've got the experience, I recognise the error when I
> see it, but that's not much help for people who haven't already made
> the mistake hundreds of times :-)
>
> +1 on improving the message.
> Paul
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161005/85b8549b/attachment.html>


More information about the Python-ideas mailing list