Assignment Versus Equality

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Tue Jun 28 04:49:00 EDT 2016


On Tuesday, June 28, 2016 at 7:26:30 PM UTC+12, Chris Angelico wrote:
> Why not:
> 
> if (error) goto cleanup;
> ...
> cleanup:
> do_cleanup;

They all fall into that same trap. Doesn’t scale. Try one with allocation inside a loop, e.g. lines 488 onwards.



More information about the Python-list mailing list