Newbie, whitespace trouble
William Park
parkw at better.net
Sun Nov 5 17:33:34 EST 2000
On Sun, Nov 05, 2000 at 11:21:27PM +0100, Syver Enstad wrote:
> Sometimes when I cut and paste code I get syntax errors because of
> whitespace, even if the code looks okay. The fix is usually to delete the
> whitespace and tab the code back again to where it was.
>
> Any tips to avoid this from happening as it is a bit irritating?
This is editor problem, not Python's. In vim, I do 'set paste' before
pasting, and 'set nopaste' after. Also, make sure your <tab> is 8
spaces.
---William Park, Open Geometry Consulting
More information about the Python-list
mailing list