[issue21577] Help for ImportError should show a more useful signature.

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.9 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21577] Help for ImportError should show a more useful signature.

2014-05-30 Thread Eric Snow
Eric Snow added the comment: Yeah, I also noticed that about **kwargs, but only a little while later and didn't get around to making a note here. As to ArgumentClinic, I imagine that this could be fixed when ModuleType (in Objects/moduleobject.c) gets converted to use it. I don't know too mu

[issue21577] Help for ImportError should show a more useful signature.

2014-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your example in #21578 suggests that **kwargs should be deleted. *args is right. >>> ImportError(3, 'a') ImportError(3, 'a') Should not this be fixed by ArgClinic conversion, and is not there an issue for that for exceptions? -- nosy: +terry.reedy ___

[issue21577] Help for ImportError should show a more useful signature.

2014-05-25 Thread Eric Snow
New submission from Eric Snow: Currently: __init__(self, /, *args, **kwargs) Proposed: __init__(self, /, *args, name=None, path=None, **kwargs) Even that is still a little vague, but at least it doesn't gloss over the kwonly args added in 3.3. -- components: Interpreter Core mes