Re: comments and the continuation prompt

2017-06-26 Thread Chris Angelico
On Mon, Jun 26, 2017 at 10:53 PM, Steve D'Aprano wrote: > - Jython 2.5 doesn't do this: > # comment > > - Neither does bpython. > > - I no longer have IronPython installed on any of my systems, so I can't check > that, or PyPy. PyPy doesn't, fwiw. ChrisA -- https://mail.python.org/mai

Re: comments and the continuation prompt

2017-06-26 Thread Steve D'Aprano
On Mon, 26 Jun 2017 01:32 pm, Ben Finney wrote: > Steve D'Aprano writes: > >> On Mon, 26 Jun 2017 08:44 am, Stefan Ram wrote: >> >> > According to The Python Language Reference Release 3.6.0, 2.1.3 >> > Comments, »A comment signifies the end of the logical line unless >> > the implicit lin

Re: comments and the continuation prompt

2017-06-25 Thread Terry Reedy
On 6/25/2017 11:32 PM, Ben Finney wrote: Steve D'Aprano writes: On Mon, 26 Jun 2017 08:44 am, Stefan Ram wrote: According to The Python Language Reference Release 3.6.0, 2.1.3 Comments, »A comment signifies the end of the logical line unless the implicit line joining rules are invok

Re: comments and the continuation prompt

2017-06-25 Thread Ben Finney
Steve D'Aprano writes: > On Mon, 26 Jun 2017 08:44 am, Stefan Ram wrote: > > > According to The Python Language Reference Release 3.6.0, 2.1.3 > > Comments, »A comment signifies the end of the logical line unless > > the implicit line joining rules are invoked.«. > > > > So, why do I get

Re: comments and the continuation prompt

2017-06-25 Thread Steve D'Aprano
On Mon, 26 Jun 2017 08:44 am, Stefan Ram wrote: > When I enter »12\«, I get a continuation prompt in the > Python 3.6 console: > 12\ > ... > > . I thought that this might indicate that the logical line > is not terminated yet. No. You get the level 2 prompt (sys.ps2) for a number o