using identifiers before they are defined

Jerry Hill malaclypse2 at gmail.com
Tue Jun 12 14:36:41 EDT 2012


On Tue, Jun 12, 2012 at 2:33 PM, Julio Sergio <juliosergio at gmail.com> wrote:
> Suppose I have to define two functions, aa, and, bb that are designed to call
> each other:
>
>  def aa():
>     ...
>     ... a call of bb() somewhere in the body of aa
>     ...
>
>  def bb():
>     ...
>     ... a call of aa() somewhere in the body of bb
>     ...
>
>
> Whatever the order of definition of aa and bb the problem remains, one of the
> two identifiers is not known ...

This works just fine in python, exactly as you've written it.  What's
the actual problem you're having?

-- 
Jerry



More information about the Python-list mailing list