Problem Commenting within Filehandle Iteration

Ben Finney bignose+hates-spam at benfinney.id.au
Thu Oct 26 04:44:55 EDT 2006


Fredrik Lundh <fredrik at pythonware.com> writes:

> Ben Finney wrote:
>
> > My preferred answer:
> > 
> >     if m:
> >         print line,
> > 
> > and get the lines back again later from your version control system.
>
> switching debugging statements on and off by rolling back to an
> earlier release strikes me as a somewhat misguided use of version
> control.

That didn't seem to me to be a debugging statement being disabled, but
rather a "let's try changing the program this way".

-- 
 \     "[T]he question of whether machines can think [...] is about as |
  `\     relevant as the question of whether submarines can swim."  -- |
_o__)                                               Edsger W. Dijkstra |
Ben Finney




More information about the Python-list mailing list