From: Kevin A. <al...@se...> - 2005-02-26 18:56:13
|
On Feb 26, 2005, at 9:34 AM, Peter C. Norton wrote: > 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 > This should work, but it is broken for me too, so this is a bug and I'm not sure if it is Pycrust or my minor subclass. I'll check and report back after I look at Windows and Mac. If you do a normal copy (ctrl+c) you don't get the >>> and ... preface chars, but ctrl+shift+c will get them. Paste strips the preface characters. ka |