python - Detect argument passing convention of a C library function -


with pure python functions can pass arguments either order (e.g. foo(1, 2, 3)) or name (e.g. foo(a=1, c=3, b=2)).

functions defined in c modules can use either convention. cannot range(stop=10, step=2), , not functions implemented using c interface.

is there way determine argument passing convention of function within python?

it appears open bug: there no way tell this. also, issue implementation-dependent: code might work in (for example) pypy, though can't confirm this.

the devs on bug page aren't sure whether change documentation style or implementation, impression it's not pressing issue them either way.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -