Disassembling strings and turning them into function parameters

mercuryprey at gmail.com mercuryprey at gmail.com
Sun Jan 30 18:48:03 CET 2005

I'm pretty new to Python, to programming overall...so how would I make
something where the user inputs multiple words in a string - like
"connect 21 user password" or similar, and then I can
split this string up to pass these arguments to a function like
ftp_connect(ip, port, user, pw) etc...? I have no idea how to "break"
the string up so I can get these out of it..

thanks for answers,

More information about the Python-list mailing list