← Back to team overview

oship-dev team mailing list archive

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

 

** Project changed: oship => oshippy

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

Title:
  DvParsable initializer is a bit confusing!

Status in Open Source Health Information Platform - Python:
  Fix Released

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