← Back to team overview

oship-dev team mailing list archive

[Bug 610162] Re: DvParsable initializer is a bit confusing!

 

** Changed in: oship
     Assignee: (unassigned) => Eduardo César (xcesar)

-- 
DvParsable initializer is a bit confusing!
https://bugs.launchpad.net/bugs/610162
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.

Status in Open Source Health Information Platform (OSHIP): New

Bug description:
DvParsable initializer is a bit confusing!
Look at its initializer:
    def __init__(self,value,formalism,size,charset,language):
        self.value=value
        size=len(value)
        self.size=size
        self.formalism=formalism
        DvEncapsulated.__init__(self,size,charset,language)

It sets the value of size, then the makes self.size = size and calls superclass initializer, which will make self.size = size again.





References