[issue46820] SyntaxError on `1not in...`

2022-02-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-25 Thread miss-islington


miss-islington  added the comment:


New changeset c7a0fd2d3fa178c83c269f2b39ebf64a0c5babcd by Miss Islington (bot) 
in branch '3.10':
bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494)
https://github.com/python/cpython/commit/c7a0fd2d3fa178c83c269f2b39ebf64a0c5babcd


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 98c3bea4d1c7335135e60946d0ec8cd5031fb6c0 by Serhiy Storchaka in 
branch 'main':
bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494)
https://github.com/python/cpython/commit/98c3bea4d1c7335135e60946d0ec8cd5031fb6c0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +29688
pull_request: https://github.com/python/cpython/pull/31566

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset f20ac2ed076df63a77f65ff2660148af9f1a9b3c by Miss Islington (bot) 
in branch '3.10':
bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" 
(GH-31479) (GH-31493)
https://github.com/python/cpython/commit/f20ac2ed076df63a77f65ff2660148af9f1a9b3c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +29624
pull_request: https://github.com/python/cpython/pull/31494

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 090e5c4b946b28f50fce445916c5d3ec45c8f45f by Serhiy Storchaka in 
branch 'main':
bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" 
(GH-31479)
https://github.com/python/cpython/commit/090e5c4b946b28f50fce445916c5d3ec45c8f45f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +29623
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31493

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +29608
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31479

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Good catch. Thank you for your report Patrick.

--
stage: patch review -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Patrick Reader


New submission from Patrick Reader :

The following code gives a SyntaxError in 3.10, but used to work fine before (I 
have tested it in 2.7, 3.8, 3.9):

1not in [2, 3]

It seems to be only the `not in` syntax which is affected; all other keywords 
still work correctly:

1in [2, 3]
1or 2
1and 2
1if 1else 1
1is 1

I know this syntax is deprecated in 3.10 (bpo43833), but it still needs to work 
for now, so that old code written like this can keep working.

--
components: Parser
messages: 413664
nosy: lys.nikolaou, pablogsal, pxeger
priority: normal
severity: normal
status: open
title: SyntaxError on `1not in...`
type: behavior
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com