Totally Confused: Passing variables to functions

Mel Wilson mwilson at the-wire.com
Fri Jun 6 11:22:03 EDT 2003


In article <i39udvo7e11828rkmudo93hj3dr68bft95 at 4ax.com>,
Chuck <cdreward at riaa.com> wrote:
>I'm not "getting" variables in Python, then.
>
>What exactly happens when I say "arg = v"?

   Find `v` in the local or global namespace and note the
object that's associated with it.

   Make an entry in the local namespace that associates that
object with the name `arg`.  (Unless it's already
established that `arg` is in the global namespace.  Let's
not deal with that now.)

   That's it.

        Regards.        Mel.




More information about the Python-list mailing list