Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 11:00 AM Terry Reedy wrote: > > On 11/12/2019 12:00 PM, Chris Angelico wrote: > > On Wed, Nov 13, 2019 at 3:57 AM Terry Reedy wrote: > >> > >> On 11/12/2019 8:29 AM, Chris Angelico wrote: > >> > >>> The OP said that the equals sign in the *first* line was flagged as > >>>

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Terry Reedy
On 11/12/2019 12:00 PM, Chris Angelico wrote: On Wed, Nov 13, 2019 at 3:57 AM Terry Reedy wrote: On 11/12/2019 8:29 AM, Chris Angelico wrote: The OP said that the equals sign in the *first* line was flagged as invalid syntax. Implication being that the error is being reported on the line "i

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 3:57 AM Terry Reedy wrote: > > On 11/12/2019 8:29 AM, Chris Angelico wrote: > > > The OP said that the equals sign in the *first* line was flagged as > > invalid syntax. Implication being that the error is being reported on > > the line "i = 4", not on the print at the end.

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Terry Reedy
On 11/12/2019 8:29 AM, Chris Angelico wrote: The OP said that the equals sign in the *first* line was flagged as invalid syntax. Implication being that the error is being reported on the line "i = 4", not on the print at the end. And in fact, I can confirm this. Run | Check Module reports an err

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 12:29 AM Chris Angelico wrote: > If it can find the position of the specific braced expression within > the string, great! But at very least, it should report the location of > the string in its original file. Further to this: If a runtime (non-syntax) error occurs, it is

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 12:14 AM Heinrich Kruger wrote: > > ‐‐‐ Original Message ‐‐‐ > On Tuesday, November 12, 2019 12:39 PM, Pieter van Oostrum > wrote: > > > r...@zedat.fu-berlin.de">--protonsignature--...@zedat.fu-berlin.de (Stefan > > Ram) writes: > > > > > When I enter > > > i = 4

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Heinrich Kruger
‐‐‐ Original Message ‐‐‐ On Tuesday, November 12, 2019 12:39 PM, Pieter van Oostrum wrote: > r...@zedat.fu-berlin.de">--protonsignature--...@zedat.fu-berlin.de (Stefan > Ram) writes: > > > When I enter > > i = 4 > > x = 2.3 > > s = 'abc' > > print( f'{i=}' ) > > into a file window of ID

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Pieter van Oostrum
r...@zedat.fu-berlin.de (Stefan Ram) writes: > When I enter > > i = 4 > x = 2.3 > s = 'abc' > print( f'{i=}' ) > > into a file window of IDLE 3.7.0, it marks the '=' > sign in the /first/ line and says 'invalid syntax'. > > Remove the »f«, and the error will disappear. I did this in IDL