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

Chris Angelico rosuav at gmail.com
Wed Oct 5 14:34:12 EDT 2016


On Thu, Oct 6, 2016 at 5:27 AM, Michel Desmoulin
<desmoulinmichel at gmail.com> wrote:
> +1. Python does need better error messages. This and the recent new import
> exception will really help.
>
> Will feature freeze prevent this to get into 3.6 if some champion it?
>

Given that it's not changing semantics at all, just adding info/hints
to an error message, it could well be added in a point release.

+1 on any feature that helps people to debug code. This doesn't look
overly spammy or anything, and it's easy for someone coming from C++
to forget to include that key parameter.

ChrisA


More information about the Python-ideas mailing list