Moving from perl to python: questions

Moshe Zadka moshez at math.huji.ac.il
Wed Feb 16 12:55:00 EST 2000


On Wed, 16 Feb 2000, David R. Favor wrote:

>   1) Best way to convert array argv[1:] into string to pass functions

Depends on what you want, but probably string.join(argv[1:])

>   2) How to implement a no-frills file slurp() function

Do you mean file.read()? open("file").read()?
--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list