Skip Menu |

This queue is for tickets about the Autodia CPAN distribution.

Report information
The Basics
Id: 78427
Status: new
Priority: 0/
Queue: Autodia

People
Owner: Nobody in particular
Requestors: oc-spam65 [...] laposte.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.14
Fixed in: (no value)



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
From: oc-spam65 [...] laposte.net
Show quoted text
> Also, I think that parameter "self" should be discarded from the Dia > output in the case of object methods.
Except for the __init__ method, where 'self' should probably still be mentioned.