Paul Rubin a écrit :
> Antoon Pardon <[EMAIL PROTECTED]> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to