bug in EmergeBase.__init__

Wolfgang Rohdewald wolfgang at rohdewald.de
Wed Jan 12 13:34:19 CET 2011


On Mittwoch 12 Januar 2011, Ralf Habacker wrote:
> this is not true  - in files below the portage subdir there
> are class  instantiation like shown below:
> 
> class Package(CMakePackageBase):
>      def __init__( self ):
>          self.subinfo = subinfo()
>          CMakePackageBase.__init__( self )
> 
> self.subinfo is present before EmergeBase has been
> instantiated.
> 
> Ralf

you are right - I just got this suspicion and was going
to check but you were faster. Sorry for the noise.

I cannot say I really like this - better IMHO would be
for EmergeBase:

def __init__(self, subinfo=None)
   self.subinfo = subinfo

-- 
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-windows/attachments/20110112/b731532e/attachment.htm 


More information about the Kde-windows mailing list