Skip to content

pass *args to __new__#173

Merged
minrk merged 1 commit intoipython:masterfrom
rmorshea:pass_args_in_new
Feb 17, 2016
Merged

pass *args to __new__#173
minrk merged 1 commit intoipython:masterfrom
rmorshea:pass_args_in_new

Conversation

@rmorshea
Copy link
Contributor

Positional arguments are left out of the call to super(...).__new__ here.

  • I also change kw to kwargs in a couple places to keep things consistent.

inst = new_meth(cls)
else:
inst = new_meth(cls, **kw)
inst = new_meth(cls, *args, **kwargs)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there a reason *args got left out?

minrk added a commit that referenced this pull request Feb 17, 2016
@minrk minrk merged commit 1d31bd7 into ipython:master Feb 17, 2016
@minrk minrk added this to the 4.2 milestone Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants