Howto pass Array/Hash into Function

Wijaya Edward ewijaya at i2r.a-star.edu.sg
Tue Oct 3 05:05:05 EDT 2006


Hi,
 
How can I pass Array, Hash, and a plain variable
in to a function at the same time.
 
I come from Perl. Where as you probably know
it is done like this:
 
sub myfunc {
 
    my ($plain_var, $hash_ref,$arref) = @_;
    # Do sth with those variables
 
   return;
}
 
I wonder how can that be done in Python.
 
Regards,
Edward WIJAYA
SINGAPORE

------------ Institute For Infocomm Research - Disclaimer -------------
This email is confidential and may be privileged.  If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you.
--------------------------------------------------------



More information about the Python-list mailing list