[Tutor] kernel serie

Jonas Melian jonasmg at softhome.net
Thu May 19 18:46:40 EDT 2005


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



More information about the Python-list mailing list