title: Mid-line comment in Python?
body: <p>I'm wondering if there is any way to comment out part of a line, like you can do in c++ with <code>/*this*/</code>.  The only comments I know about are <code># this</code> which always goes to the end of the line and the <code>"""these"""</code> ones, which do not work mid-line.  </p>
  
  <p>Example use-case: using subprocess and need to temporarily comment out an argument <code>-p 0</code> from the list:</p>
  
  <pre><code>['../some/guy', '-m', '10', '-p', '0', '-n', '100', '-f', '/dev/stdout']
  </code></pre>
  
  <p>It would be nice to have a keyboard shortcut to comment out a selection, at the moment I just copy the whole line as below</p>
  
  <pre><code>#['../some/guy', '-m', '10', '-p', '0', '-n', '100', '-f', '/dev/stdout']
  ['../some/guy', '-m', '10', '-n', '100', '-f', '/dev/stdout']
  </code></pre>
  
  <p>I'm expecting a big fat 'no' but I suppose it doesn't hurt to ask, python has surprised me a few times before.  </p>