Issue 14918: Incorrect TypeError message for wrong function arguments (original) (raw)
Issue14918
Created on 2012-05-25 16:21 by tsou, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg161588 - (view) | Author: Thanos Tsouanas (tsou) | Date: 2012-05-25 16:21 |
# This correctly raises a type error, but the explanation # that comes with it is bad: def foo(x, y, z=28): return foo(x, z=8) # TypeError: foo() takes at least 2 arguments (2 given) | ||
msg162085 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2012-06-01 17:59 |
I think this was fixed in 3.3, and maybe backported. Could you test with the latest releases? | ||
msg162092 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2012-06-01 18:08 |
It is fixed. It was not backported. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:30 | admin | set | github: 59123 |
2012-08-01 01:36:25 | jcea | set | nosy: + jcea |
2012-06-01 18:08:58 | r.david.murray | set | status: open -> closednosy: + r.david.murraymessages: + resolution: duplicatestage: resolved |
2012-06-01 17:59:35 | eric.araujo | set | nosy: + eric.araujo, benjamin.petersontitle: Incorrect explanation of TypeError exception -> Incorrect TypeError message for wrong function argumentsmessages: + versions: + Python 3.3 |
2012-05-25 16:21:04 | tsou | create |