Comments within a line

From: Edward Diener (eldiener_at_earthlink.net)
Date: 07/31/04


Date: Sat, 31 Jul 2004 02:07:10 GMT

Has there ever been any discussion of adding comments notation to Python,
such as C++'s /* */, which could occur in the middle of a line or span
multiple lines ? I would like to see it as a more elegant solution for
quickly commenting out code. I am aware of the """ """ technique around
multiple lines but even that seems a poor hack. A comment that could enclose
any sequence of characters would be most welcome.



Relevant Pages

  • Re: grep for pattern PLUS first line
    ... > come up with an elegant solution. ... > grep pattern which will always print ... > that involve temp files or multiple passes over the data, ... > to a database client. ...
    (comp.unix.shell)
  • grep for pattern PLUS first line
    ... come up with an elegant solution. ... When I grep for a pattern in files like this I often have trouble ... that involve temp files or multiple passes over the data, ... to a database client. ...
    (comp.unix.shell)
  • Parallel/Multiprocessing script design question
    ... The processing involves multiple steps that each input file has to go ... I am trying to decide between a batch mode design and a pipelined ... But I had chosen Python over Perl ... steps and have multiple such "pipelines" running simultaneously in parallel. ...
    (comp.lang.python)
  • Re: 2.6, 3.0, and truly independent intepreters
    ... independence so python 2 has been frustrating at time, ... You were allowing users to use multiple scripts ... but it's what made me think of the idea of green processes. ... thread locals first would itself be incredibly ...
    (comp.lang.python)
  • Re: Jython, GILs and object locking.
    ... > What you seem to be aiming at is the ability to have multiple Python ... > interpreters in the same process (but executing in isolation, ... > just moving the multiple processes into multiple interpreters within ...
    (comp.lang.python)