From: Waylan L. <wa...@gm...> - 2008-11-14 15:26:44
|
On Fri, Nov 14, 2008 at 9:44 AM, Waylan Limberg <wa...@gm...> wrote: [snip] > method to simulate a function. But even then, as callables can't be > instances, I couldn't override ``__init__`` to pass in extra arguments > and/or set state on init. > Sorry, I misspoke here. Actually ``__call__`` only works with an instance of a class, so this would work as the instance needs to be initialized first. But, I think that would be more confusing than the current way of doing things to the beginner. -- ---- Waylan Limberg wa...@gm... |