ANN: Dao Language v.0.9.6-beta is release!
Christophe
chris.cavalaria at free.fr
Wed Dec 7 04:01:27 EST 2005
Paul Rubin a écrit :
> Antoon Pardon <apardon at forel.vub.ac.be> writes:
>
>>But lately I have been wondering about doing the following:
>>end = None
>>...
>> if ...:
>> ...
>> end
>>IMO it looks better, but I'm reluctant because it suggest
>>some checking by the compilor, which just doesn't happen.
>
>
> I don't think you can always do that.
>
> try:
> ...
> end
> except blah:
> ...
>
> looks syntactically invalid.
You shouldn't put "end" before the except but after :
try:
...
except blah:
...
end
More information about the Python-list
mailing list