[issue33401] `exec` attribute can't be set to objects in Python2 (SyntaxError)

luav report at bugs.python.org
Tue May 1 17:04:58 EDT 2018


luav <luardev at gmail.com> added the comment:

I'm sorry for the previous question, now it's clear (the space is allowed after the '.' which complicates the parsing):
```
>>> o.e = 1
>>> o. e
1
>>> o.e
1

```

Anyway, it would be nice to outline the eligible values for attributes in the documentation (https://docs.python.org/2/tutorial/classes.html).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33401>
_______________________________________


More information about the Python-bugs-list mailing list