Re: [Tutor] What not to put in __init__()

2006-10-03 Thread Kent Johnson
Tony Cappellini wrote: > > I've just inherited a lot of python code to maintain. > > The __init__ functions in many of the classes are very long- some over > 100 lines. > > I like to keep functions/methods short & readable at a glance, if possible. > > 1. Is it good methodology to move some co

[Tutor] What not to put in __init__()

2006-10-03 Thread Tony Cappellini
I've just inherited a lot of python code to maintain.The __init__ functions in many of the classes are very long- some over 100 lines.I like to keep functions/methods short & readable at a glance, if possible. 1. Is it good methodology to move some code from _init__ to it's own method within the cl