How coding in Python is bad for you

Tim Chase python.list at tim.thechases.com
Tue Jan 24 20:54:30 EST 2017


On 2017-01-24 20:04, Dennis Lee Bieber wrote:
>>You don't know that. If this has been pasted from elsewhere, you
>>need to match up the indentation level with the current code.
> 
> 	So? The editor(s) I tend to use have the ability to shift
> indent in/out for selected blocks. Do the paste, highlight the
> pasted content, and shift the indent as needed.

The editor I use (vim) doesn't even require me to re-select the range
to shift it.  Just using

  >']

or

  <']

will indent/dedent from the cursor to the line where your paste ended.

Hurray for laziness :-)

-tkc




More information about the Python-list mailing list