
In [1]: >>>> " ".join("abcdef") ...: 'a b c d e f' ...: File "<ipython-input-1-61654c559afe>", line 1 >>>> " ".join("abcdef") ^ SyntaxError: invalid syntax Anyone know the magic spell to change the repl to 3 arrows? cheerio,

Are you typing those >? Don’t. On Sat, 8 Feb 2020 at 06:35 René Dudfield <renesd@gmail.com> wrote:
-- Luciano Ramalho | Author of Fluent Python (O'Reilly, 2015) | http://shop.oreilly.com/product/0636920032519.do | Technical Principal at ThoughtWorks | Twitter: @ramalhoorg

On Mon, Feb 10, 2020 at 11:03:15PM -0300, Luciano Ramalho wrote:
Are you typing those >?
Don’t.
IPython has a magic %paste command that understands CPython's >>> prompt, but not PyPy's >>>> prompt. https://cmdlinetips.com/2012/12/how-to-paste-code-in-python-interpreter-hint... -- Steven

On 11/2/20 10:28 am, Steven D'Aprano wrote:
You can change the pypy prompt with `sys.ps1 ='>>> '` Otherwise, this is a ipython issue. Their issue tracker is at https://github.com/ipython/ipython/issues/ Matti

Are you typing those >? Don’t. On Sat, 8 Feb 2020 at 06:35 René Dudfield <renesd@gmail.com> wrote:
-- Luciano Ramalho | Author of Fluent Python (O'Reilly, 2015) | http://shop.oreilly.com/product/0636920032519.do | Technical Principal at ThoughtWorks | Twitter: @ramalhoorg

On Mon, Feb 10, 2020 at 11:03:15PM -0300, Luciano Ramalho wrote:
Are you typing those >?
Don’t.
IPython has a magic %paste command that understands CPython's >>> prompt, but not PyPy's >>>> prompt. https://cmdlinetips.com/2012/12/how-to-paste-code-in-python-interpreter-hint... -- Steven

On 11/2/20 10:28 am, Steven D'Aprano wrote:
You can change the pypy prompt with `sys.ps1 ='>>> '` Otherwise, this is a ipython issue. Their issue tracker is at https://github.com/ipython/ipython/issues/ Matti
participants (4)
-
Luciano Ramalho
-
Matti Picus
-
René Dudfield
-
Steven D'Aprano