string parameter replacement question
dsavitsk
dsavitsk at e-coli.net
Mon Jun 19 15:46:23 EDT 2000
>>> def fun1(str):
>>> fun2("input=" + str)
"oliver" <fwang2 at yahoo.com> wrote in message
news:Pine.LNX.4.10.10006191432420.3161-100000 at worf.mcnc.org...
> hi,
>
> I have a function defined to accept one string parameter, inside this
> funtion, I need to call another function to take this string as part of
> the parameter, I am confused how to make the replacement happen. See
> following code:
>
> def fun1(str):
> fun2("input=str")
>
> Noted that fun2 is from a moudle and it is expecting such a string. But
> the replacement won't happen with above structure, for example, fun1("me")
> won't produce a fun2("input=me"). Can anyone help me out here?
>
> Thanks a lot
>
>
More information about the Python-list
mailing list