Representation of python code ?

Maric Michaud maric at aristote.info
Mon Sep 15 10:17:42 EDT 2008


Le Monday 15 September 2008 16:06:19 showellshowell at gmail.com, vous avez 
écrit :
> I'm not sure this is the best counterexample.  You can see statically
> that A potentially creates an instance of the B class.
>
> > class A :
> >     def __init__(self) :
> >          self._b = B()
> >
> > class B : pass

Yes, you can, but are you sure it's obvious that B in A.__init__ is the class 
you think of ?

-- 
_____________

Maric Michaud




More information about the Python-list mailing list