You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value SyntaxError.offset is for most SyntaxErrors an offset from
beginning of line SyntaxError.lineno. In case of an triple-quoted string
which is not at all closed, offset seems to be the offset from beginning
of the buffer.
Activity
achimgaedke commentedon Jan 9, 2008
The value SyntaxError.offset is for most SyntaxErrors an offset from
beginning of line SyntaxError.lineno. In case of an triple-quoted string
which is not at all closed, offset seems to be the offset from beginning
of the buffer.
achimgaedke commentedon Jan 13, 2008
sometimes offset is None...
Example:
def blub(bla, blub=None, blabla):
bla
causes:
non-default argument follows default argument
devdanzin commentedon May 16, 2009
Confirmed in trunk and py3k.
BreamoreBoy commentedon Sep 19, 2010
This will go nowhere until someone supplies a patch. I'm assuming unit tests can be built using the attached test file.
benjaminp commentedon Sep 21, 2010
None offsets gone in r84931.
akuchling commentedon Nov 6, 2016
Fixed in Python 3.2 alpha 3, so there's no longer any work to be done for this issue. Closing.