New to Python - block grouping (spaces)

Tim Chase python.list at tim.thechases.com
Thu Apr 16 19:49:05 CEST 2015


On 2015-04-17 03:10, Steven D'Aprano wrote:
> And there there was the time I edited some code written by my boss.
> I intended to write a comment:
> 
>     # FIXME: this function is a little slow and should be optimized.
> 
> but I hit the wrong key a couple of times and wrote:
> 
>     # This is a steaming pile of guano written by a drooling
>     # moron who shouldn't be allowed near a computer. It needs 
>     # to be deleted with prejudice, and the hard drive and all 
>     # backup tapes set on fire just to be sure.
> 
> As I'm sure you will agree, it is an easy mistake to make.

Phew, glad I'm not the only one to do that.  Fortunately, I had one
of those code-reformatters the OP talks about, and it fixed the
mistake for me. :-)

-tkc






More information about the Python-list mailing list