Open eiso opened 5 years ago
@eiso, thanks a lot for reporting this. I think it is the same problem as #149. Your solution seems quite elegant and feel free to submit it as a PR. If all the other tests pass, this seems like a nice fix.
I've seen that the PI
functions solves it via astnodes.py
: https://github.com/vallettea/koala/blob/62296bdc9e5f42dde6ff72dc436339c07b963b30/koala/ast/astnodes.py#L306
Maybe we should remove this code once you update the code. I like your generic approach better.
I would still like to add a test for this so I'll keep it open for the time being. I'm waiting for #231 to be merged. However, the functionality should work now.
I ran into the issue that if a function is not passed an argument, koala is unable to accept it. Please find a reproducible case below with the function
TODAY()
which exists inexcellib.py
.Modify
example/basic.py
(line 24):Output:
This can be bypassed by adding the following try/except on line 300 in
ast/astnodes.py
: