Howto pass Array/Hash into Function

MonkeeSage MonkeeSage at gmail.com
Tue Oct 3 05:46:47 EDT 2006


Wildemar Wildenburger wrote:
> MonkeeSage wrote:
> > Wijaya Edward wrote:
> >> I wonder how can that be done in Python.
> >
> > def myfunc(plain_var, hash_ref, arref):
> >   # Do sth with those variables
> >   return
>
> At the risk of being a jerk (sorry, I'm really just curious):
> Why isn't that obvious?
>
> wildemar (sorry)

I wondered that too and wasn't even going to answer, but then I thought
mabye the question was meant to be more general, like "what is the
syntax for passing objects to functions in python?"

Regards,
Jordan




More information about the Python-list mailing list