PyDocs

Nav

Python Runtime Services

SyntaxError

builtins

exception
  • SyntaxError(message, details)
Invalid syntax.
Changed in 3.10
  • 3.10: Added the end_lineno and end_offset attributes.
Members of SyntaxError

e

end_lineno
exception end lineno
end_offset
exception end offset

f

filename
exception filename

l

lineno
exception lineno

o

offset
exception offset

t

text
exception text
0 Examples
No examples for builtins/SyntaxError.
See Also
No see-alsos for builtins/SyntaxError
0 Notes
No notes for SyntaxError