What is the class? Another option would be to make the super-class simpler. My opinion is that .args should hold all relevant information and other fields should compute their values from .args by properties.
On Sun, Sep 15, 2013 at 3:00 AM, F. B. <[email protected]> wrote: > I am subclassing a class of sympy which has a complicated *args* structure, > but the subclass has certain properties so that it automatically fills many > of these *args*. In the constructor code of my subclass I add the missing > args and then I call the superclass constructor, which records the args. I > want that my subclass retains the property of rebuildability, but my class > now has in its args a lot more variables than needed by the constructor. > > How can I deal with this? Should I overwrite the *func( )* method to > handle more data than required by the constructor? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
