Thanks all for these detailed explanations.
On Oct 18, 10:48 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> dmitrey a écrit :
> Not unless these classes define their own initializers. But that's
> another problem
>
> > and there are lots of
> > those ones)
>
> > class MyClass:
> > def __i
dmitrey a écrit :
> Hi all,
> I have the code like this one:
>
> from myMisc import ooIter
> class MyClass:
Unless you have a need for compatibility with aged Python versions,
you'd be better using new-style classes:
class MyClass(object):
> def __init__(self): pass
This is the default be
On Oct 19, 8:22 am, dmitrey <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have the code like this one:
>
> from myMisc import ooIter
> class MyClass:
> def __init__(self): pass
> iterfcn = lambda *args: ooIter(self) # i.e pass the class instance
> to other func named ooIter
> field2 = val2
>