Why not allow empty code blocks?

Kent Tong kent.tong.mo at gmail.com
Fri Jul 22 22:06:41 EDT 2016


On Saturday, July 23, 2016 at 9:49:51 AM UTC+8, Steven D'Aprano wrote:

> Because it cannot tell the difference between an empty code block and
> failing to indent the code block:
> 
> for x in sequence:
> print('loop')

Thanks for the excellent answer!



More information about the Python-list mailing list