[Tutor] Use flag to exit? (OT - PEP 8 Gripe)
Emile van Sebille
emile at fenx.com
Fri Jun 25 17:23:53 CEST 2010
On 6/25/2010 1:33 AM ALAN GAULD said...
>> Copy and pasting is a PITA.
>
> Why would you want to copy and paste?
Because it makes it easy to work on code. My preferred editor (TextPad)
allows block selection of indented text such that I can copy and paste
functions and methods into the python CLI and work with them there. I
find it very easy when developing to keep the CLI open for this purpose
and interactively test as I write. Unfortunately, PEP 8 doesn't support
this use case as once the blank lines separating methods are pasted in,
your class definition is complete. So I either put hash marks in or
leave the blank lines out...
Emile
More information about the Tutor
mailing list