From: Peter C. N. <spa...@le...> - 2005-02-26 17:35:06
|
On Sat, Feb 26, 2005 at 08:00:26AM -0800, Kevin Altis wrote: > http://pythoncard.sourceforge.net/shell.html > > Ctrl+Shift+V is what you're looking for to run multiple lines from a > paste. > > ka Hmm... this almost works. However it now messes up the indentation on the way into the python shell. I.e.: var = "boogie" if "bookie" == var: print "test" else: print "not boogie" becomes: var = "boogie" if "bookie" == var: pass else: print "not boogie" File "<input>", line 3 else: ^ SyntaxError: invalid syntax var = "boogie" if "bookie" == var: print "test" else: print "not boogie" File "<input>", line 3 else: ^ SyntaxError: invalid syntax Copy-n-paste from the shell is eliminating the ">>>" and "..." from the output, but you know where they are. Does anyone know if the shell can be made to not try to autoindent on paste? -Peter -- The 5 year plan: In five years we'll make up another plan. Or just re-use this one. |