Issue 28536: Show the qualified name when a call fails (original) (raw)

Issue28536

Created on 2016-10-25 21:47 by refi64, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
0001-Make-failed-calls-to-methods-show-the-fully-qualifie.patch refi64,2016-10-25 21:53
Messages (3)
msg279460 - (view) Author: Ryan Gonzalez (refi64) * Date: 2016-10-25 21:47
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.
msg279461 - (view) Author: Ryan Gonzalez (refi64) * Date: 2016-10-25 21:53
HAHA, I lied. :D Attached is what I have so far.
msg279462 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2016-10-25 21:57
Perhaps you should merge your work with Issue 2786. With a very brief look, the patches seem to take a similar approach.
History
Date User Action Args
2022-04-11 14:58:38 admin set github: 72722
2018-07-26 08🔞18 berker.peksag set status: open -> closedtype: enhancementstage: resolved
2016-10-25 21:57:41 martin.panter set nosy: + martin.pantermessages: + resolution: duplicatesuperseder: Names in function call exception should have class names, if they're methods
2016-10-25 21:53:20 refi64 set files: + 0001-Make-failed-calls-to-methods-show-the-fully-qualifie.patchkeywords: + patchmessages: +
2016-10-25 21:47:29 refi64 create