Message316015
| 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:55 | luav | set | recipients: + luav |
| 2018-05-01 20:32:55 | luav | set | messageid: <1525206775.24.0.682650639539.issue33401@psf.upfronthosting.co.za> |
| 2018-05-01 20:32:55 | luav | link | issue33401 messages |
| 2018-05-01 20:32:55 | luav | create | |