[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 493fef60a7600f83fe6916ed89d0fb0c0aab484d by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861). (GH-16931)
https://github.com/python/cpython/commit/493fef60a7600f83fe6916ed89d0fb0c0aab484d


--

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 91fc9cf43cc2e3a2f236ef9944cf1f4bed701545 by Serhiy Storchaka in 
branch '3.7':
[3.7] bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861). (GH-16930)
https://github.com/python/cpython/commit/91fc9cf43cc2e3a2f236ef9944cf1f4bed701545


--

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +16460
pull_request: https://github.com/python/cpython/pull/16931

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +16459
pull_request: https://github.com/python/cpython/pull/16930

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread miss-islington


miss-islington  added the comment:


New changeset ba3a566328e8df49741059b24a41480e248bf6d7 by Miss Skeleton (bot) 
in branch '3.8':
bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861)
https://github.com/python/cpython/commit/ba3a566328e8df49741059b24a41480e248bf6d7


--
nosy: +miss-islington

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16458
pull_request: https://github.com/python/cpython/pull/16929

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 26ae9f6d3d755734c9f371b9356325afe5764813 by Serhiy Storchaka in 
branch 'master':
bpo-38535: Fix positions for AST nodes for calls without arguments in 
decorators. (GH-16861)
https://github.com/python/cpython/commit/26ae9f6d3d755734c9f371b9356325afe5764813


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-20 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
versions: +Python 3.9 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-20 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-20 Thread Alex Hall


Alex Hall  added the comment:

I assume this also happens on 3.9, it's just a bit hard for me to test that now.

--

___
Python tracker 

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



[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-20 Thread Alex Hall


New submission from Alex Hall :

In a decorator such as `@a()`, the ast.Call node has a col_offset starting from 
the @ symbol. This doesn't happen for decorators without arguments (e.g. `@a`) 
or with some arguments (e.g. `@a(x)`).

--
components: Interpreter Core
files: decorator_python_bug.py
messages: 354987
nosy: alexmojaki
priority: normal
severity: normal
status: open
title: Incorrect col_offset for decorators with zero arguments (empty 
parentheses)
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file48669/decorator_python_bug.py

___
Python tracker 

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