On Thu, Nov 6, 2008 at 11:00 PM, Ben Finney <[EMAIL PROTECTED]> 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? -- http://mail.python.org/mailman/listinfo/python-list