[issue33401] `exec` attribute can't be set to objects in Python2 (SyntaxError)
luav
report at bugs.python.org
Tue May 1 16:58:29 EDT 2018
luav <luardev at gmail.com> added the comment:
Why Python 2 documentation does not outline that keywords / statements can't be used as the object attributes?
https://docs.python.org/2/reference/simple_stmts.html#exec
And why does this restriction exist at all? The keywords always stand-alone and newer follow '.', i.e. always distinguishable from the object attributes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33401>
_______________________________________
More information about the Python-bugs-list
mailing list