Why not allow empty code blocks?

Kent Tong kent.tong.mo at gmail.com
Fri Jul 22 11:33:15 EDT 2016


Hi

I'm aware that we can use 'pass' as an empty code block. But why doesn't python allow a code block to be empty and thus eliminate the need for this null statement?

thanks in advance



More information about the Python-list mailing list