New submission from Alex Hall <alex.moj...@gmail.com>:

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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38535>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to