string parameter replacement question
Aahz Maruch
aahz at netcom.com
Mon Jun 19 15:43:17 EDT 2000
In article <Pine.LNX.4.10.10006191432420.3161-100000 at worf.mcnc.org>,
oliver <fwang2 at yahoo.com> wrote:
>
>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")
Just drop the quotes:
def fun1(str):
fun2(input=str)
In fact, you should just be able to do:
fun2(str)
--
--- Aahz (Copyright 2000 by aahz at netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"The only problem with Microsoft is they just have no taste." --Steve Jobs
(From _Triumph of the Nerds_ PBS special)
More information about the Python-list
mailing list