PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Python Runtime Services
__future__
__main__
abc
annotationlib
atexit
builtins
contextlib
dataclasses
gc
inspect
site
sitecustomize
sys
sys.monitoring
sysconfig
traceback
usercustomize
warnings
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Python Runtime Services
__future__
__main__
abc
annotationlib
atexit
builtins
contextlib
dataclasses
gc
inspect
site
sitecustomize
sys
monitoring
sysconfig
traceback
usercustomize
warnings
All modules
SyntaxError
builtins
exception
SyntaxError(message, details)
Invalid syntax.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
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.
Log in
to add an example
See Also
No see-alsos for
builtins/SyntaxError
Log in
to add a see-also
0 Notes
No notes for
SyntaxError
Log in
to add a note