Newbie: Pass Value
Rob Hooft
rob at hooft.net
Wed Jun 14 01:52:49 EDT 2000
>>>>> "SL" == Shengquan Liang <liang at cad.gatech.edu> writes:
SL> in the main progam, i call a method populate (), and pupulate
SL> call another method assign() .
SL> like this: populate(assign())
The example is not what you describe.
SL> e.g. populate(assign(post= form1["InputNumber"]) )
This will work if "assign" is defined with a parameter "post":
def assign(post):
print post
You can even specify a default value for "post" if you want to be
able to call assign without arguments.
Regards,
Rob Hooft
--
===== rob at hooft.net http://www.hooft.net/people/rob/ =====
===== R&D, Nonius BV, Delft http://www.nonius.nl/ =====
===== PGPid 0xFA19277D ========================== Use Linux! =========
More information about the Python-list
mailing list