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

Pynih doesn't replicate Python behaviour wrt reordering function arguments #127

Open
atilaneves opened this issue Aug 26, 2019 · 0 comments
Labels
pynih New Python implementation Python Relates to the python part of autowrap

Comments

@atilaneves
Copy link
Collaborator

With pyd, this D code:

void fun(int i, int j, int k=2, int l=3) { }

Is callable in Python with any of:

fun(0, 1)
fun(0, 1, 2)
fun(0, 1, 2, 3)
fun(0, 1, l=4, k=5)
fun(j=1, i=0)

The required parameters are all reorderable as they would be given a similar Python function definition. The pynih backend doesn't currently allow this.

@atilaneves atilaneves added Python Relates to the python part of autowrap pynih New Python implementation labels Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pynih New Python implementation Python Relates to the python part of autowrap
Projects
None yet
Development

No branches or pull requests

1 participant