Max Noel wrote:
> 
>     The [:2] is unnecessary, as you're limiting the number of splits  to
> 2, so the resulting list from split() can't have more than 3  elements.
> 
Without the [:2], it fails

>     Also, note that this code will likely cause the program to crash  on
> any system that isn't Linux. On my box (OS X 10.4.1), for example, 
> sys.platform returns 'darwin'.
> 
Thanks, but it's for a linux program only
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to