Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SWIG] Sets defaultt -> default for keyword args #2767

Closed
wants to merge 1 commit into from

Conversation

nuka1195
Copy link
Contributor

No description provided.

@nuka1195
Copy link
Contributor Author

@jimfcarroll, would you consider this.

@nuka1195
Copy link
Contributor Author

I should explain :) Currently the pydocs list default as the keyword. For obvious reasons default is not allowed as a parameter, so you used defaultt. But this is a poor keyword and I can't think of another word for this specific parameter. Plus changing could break some addons, though defaultt should have also.

This patch simply renames defaultt -> default for the keyword only and now matches the pydocs.

@jenkins4xbmc
Copy link
Contributor

Is this PR ment to be tested by jenkins?

@nuka1195
Copy link
Contributor Author

no, i was hoping @jimfcarroll would comment.

@Memphiz
Copy link
Member

Memphiz commented Jun 16, 2013

the jenkins message was an accident - please ignore it...

@jimfcarroll
Copy link
Member

Though there's no need for the temporary, it works.

@MartijnKaijser
Copy link
Member

@jimfcarroll
comments?

@jimfcarroll
Copy link
Member

Really? There's code in the template in order to change the name of a single parameter somewhere in the code? IMO, leaving defaultt is much cleaner than having generic code modified to handle one off case. Why not just change the name to 'dflt' or something?

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.

None yet

5 participants