On Jun 11, 2008, at 5:13 PM, Paul McNett wrote:
> When reading the code, the __init__ isn't cluttered with irrelevant
> information.
One, irrelevant is in the eye of the beholder. I like to add comments
to the declarations, so that others reading the code have an idea what
these atts are for.
If it was a matter of tidiness, you could always do something like:
def __init__(self, ...):
self._declarePropertyAttributes()
...
def _declarePropertyAttributes(self):
self._foo = 1
self._bar = None
etc.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]