[New-bugs-announce] [issue43705] [docs] Document that SyntaxError's offsets are 1-indexed

Ammar Askar report at bugs.python.org
Fri Apr 2 12:32:20 EDT 2021

New submission from Ammar Askar <ammar at ammaraskar.com>:

As pointed out by Guido in https://bugs.python.org/issue43555, we switched to making the column offsets for SyntaxError be 1-indexed consistently in https://bugs.python.org/issue34683

The rationale is explained by Guido and expanded upon in follow up comments here: https://github.com/python/cpython/pull/9338#pullrequestreview-155989089 

This property however was not actually ever added to SyntaxError's documentation: https://docs.python.org/3/library/exceptions.html#SyntaxError

assignee: docs at python
components: Documentation
messages: 390081
nosy: ammar2, docs at python, gvanrossum, terry.reedy
priority: normal
severity: normal
status: open
title: [docs] Document that SyntaxError's offsets are 1-indexed
versions: Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list