Why would I learn Python over other languages?
bruno modulix
onurb at xiludom.gro
Tue Jul 13 15:59:46 EDT 2004
Nick Smallbone a écrit :
> "bruno modulix" <onurb at xiludom.gro> wrote in message
> news:40edc84f$0$20016$636a15ce at news.free.fr...
>
> <snip>
>
>>The same in Python
>>
>>try:
>> for line in File("mytext.txt"):
>> print line
>>except IOError, e:
>> print "Erreur", e
>>
>
>
> Umm, that won't work. Should be file instead of File.
>
woops ! You're of course right.
More information about the Python-list
mailing list