Why not allow empty code blocks?

BartC bc at freeuk.com
Fri Jul 29 09:15:01 EDT 2016


On 29/07/2016 12:14, D'Arcy J.M. Cain wrote:
> On Fri, 29 Jul 2016 10:58:35 +0200
> Antoon Pardon <antoon.pardon at rece.vub.ac.be> wrote:
>> As BartC already mentions it happens fairly often during debugging.
>> Something like.
>>
>> try:
>>    Some code
>> except Some_Exception:
>>    # Commented code for when I am debugging <Some code>
>>    pass
>
> I realize that that's a simplified example but really, isn't this just
> as easy?
>
> try:
>    Some code
> # except Some_Exception:
>    # Commented code for when I am debugging <Some code>

Will it behave the same way when there is a Some_Exception exception?

-- 
Bartc




More information about the Python-list mailing list