This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xonatius
Recipients Arfrever, belopolsky, ezio.melotti, ilblackdragon, pitrou, smurfix, xonatius
Date 2015-02-03.06:32:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422945138.51.0.961330678624.issue2786@psf.upfronthosting.co.za>
In-reply-to
Content
Made a straightforward patch for this. Probably not that pretty, so suggestions are welcome.

Note that some function names will become pretty long in exceptions:

>>> class A:
...     def __init__(self):
...         def f():
...             pass
...         f(1,2,3)
...
>>> A()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 5, in __init__
TypeError: A.__init__.<locals>.f() takes 0 positional arguments but 3 were given

Passing UTs from lastest snapshot.
History
Date User Action Args
2015-02-03 06:32:18xonatiussetrecipients: + xonatius, belopolsky, pitrou, ezio.melotti, smurfix, Arfrever, ilblackdragon
2015-02-03 06:32:18xonatiussetmessageid: <1422945138.51.0.961330678624.issue2786@psf.upfronthosting.co.za>
2015-02-03 06:32:18xonatiuslinkissue2786 messages
2015-02-03 06:32:18xonatiuscreate