Moving from perl to python: questions

Gaetan Corneau Gaetan_Corneau at baan.com
Wed Feb 16 09:19:39 EST 2000


David,

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

from string import join

l = ["aaa", "bbb", "ccc"]

s = join(l[1:])


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

What is a "slurp" function?
______________________________________________________
   Gaetan Corneau
   Software Developer 
   Software Engineering Process Group
   BaaN  Supply Chain Solutions  
   http://www.baan.com
   E-mail: Gaetan_Corneau at baan.com                  
   Tel: (418) 266-8252         
______________________________________________________
"Profanity is the one language all programmers know best"


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/B/MU d- s+:++ a C++ 
UL+ P--- W+ N- K- W++ t-- 
!5 X- R+ tv-- b++ DI++ 
G e++ h---- r+++ y++++
------END GEEK CODE BLOCK------





More information about the Python-list mailing list