This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author luav
Recipients luav
Date 2018-05-01.20:32:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525206775.24.0.682650639539.issue33401@psf.upfronthosting.co.za>
In-reply-to
Content
The following code works fine on Python 3.5.2 but `exec` attribute fails to be set to the object on Python 2.7.12:
```python
>>> o = type('O', (object,), {})
>>> o.e = 1
>>> o.eval = 1
>>> o.exec = 1
  File "<stdin>", line 1
    o.exec = 1
         ^
SyntaxError: invalid syntax
```

OS Environments:  Ubuntu 16.04.4 LTS x64
History
Date User Action Args
2018-05-01 20:32:55luavsetrecipients: + luav
2018-05-01 20:32:55luavsetmessageid: <1525206775.24.0.682650639539.issue33401@psf.upfronthosting.co.za>
2018-05-01 20:32:55luavlinkissue33401 messages
2018-05-01 20:32:55luavcreate