Subject: | AutoDia does not handle default values in Python source |
Hello,
I tried AutoDia on a Python source and observed that default values are
not taken into account. For example, the definition
def hs_propagator_Taylor(Delta, h, k0, q=5): ...
creates a Dia function with a parameter named 'q=5' whereas the expected
result is a Dia function with a parameter 'q' and default value '5'.
There is even a stronger bug with the following definition,
def hs_propagator(Delta, h, k0, method="linear", q=None): ...
because the fourth parameter is parsed as 'method="linear"' (the
first quotation mark was transfomed to '"').
Also, I think that parameter "self" should be discarded from the Dia
output in the case of object methods.
Have a nice day,
O.C.
perl v5.14.2
debian testing