[Python-ideas] Improve error message when missing 'self' in method definition
Nathan Goldbaum
nathan12343 at gmail.com
Tue Oct 11 18:30:48 EDT 2016
On Wednesday, October 5, 2016, Yury Selivanov <yselivanov.ml at gmail.com>
wrote:
>
>
> On 2016-10-05 2:50 PM, Nathan Goldbaum wrote:
>
>> On Wed, Oct 5, 2016 at 1:27 PM, 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?
>>>
>>> Speaking of, I'm not much of a C hacker, and messing with CPython
>> internals
>> is a little daunting. If anyone wants to take this on, you have my
>> blessing. I also may take a shot at implementing this idea in the next
>> couple weeks when I have some time.
>>
>
> It would help if you could create an issue and write exhaustive unittests
> (or at least specifying how exactly the patch should work for all corner
> cases). Someone with the knowledge of CPython internals will later add the
> missing C code to the patch.
Good idea. I will make an attempt at this later this week, starting with
the tests that were added to pypy. For now I will focus on bound methods.
>
> Yury
>
> _______________________________________________
> 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/20161011/2429e967/attachment-0001.html>
More information about the Python-ideas
mailing list