More __init__ methods
Mr.SpOOn
mr.spoon21 at gmail.com
Fri Nov 7 06:01:35 EST 2008
On Thu, Nov 6, 2008 at 11:00 PM, Ben Finney
<bignose+hates-spam at benfinney.id.au> wrote:
> Yes, the main reason is that it kills duck typing. The initialiser
> should *use* the parameters passed, and allow exceptions to propagate
> back to the caller if the parameters don't behave as expected.
>
> Another good reason to avoid the above style is that it's far too
> complex. Different behaviours should be in different functions.
Ok, thanks.
Is there a good book or source where I can read about such topics?
Core Python Programming doesn't seem to talk about decorators. Maybe
it's too old?
More information about the Python-list
mailing list