[issue28536] Show the qualified name when a call fails

2018-07-26 Thread Berker Peksag


Change by Berker Peksag :


--
stage:  -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Martin Panter

Martin Panter added the comment:

Perhaps you should merge your work with Issue 2786. With a very brief look, the 
patches seem to take a similar approach.

--
nosy: +martin.panter
resolution:  -> duplicate
superseder:  -> Names in function call exception should have class names, if 
they're methods

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

HAHA, I lied. :D Attached is what I have so far.

--
keywords: +patch
Added file: 
http://bugs.python.org/file45225/0001-Make-failed-calls-to-methods-show-the-fully-qualifie.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez

New submission from Ryan Gonzalez:

e.g. make this:


class X:
def __init__(self): pass

X(1)


print something like this:


TypeError: X.__init__() takes 1 positional argument but 2 were given


instead of:


TypeError: __init__() takes 1 positional argument but 2 were given


I'm trying to see if I can create a patch right now, though it probably won't 
be ready until Thursday.

--
components: Interpreter Core
messages: 279460
nosy: Ryan.Gonzalez
priority: normal
severity: normal
status: open
title: Show the qualified name when a call fails
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com