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 class?
For example there are many for loops with several levles of nested if statements within them.
I'd like to move each of these for/if chunks to distinct methods, so to simplify the look of __init__, without modifying how it works.
thanks
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor