Message312010
| Author | nitishch |
|---|---|
| Recipients | Yuri Kanivetsky, nitishch |
| Date | 2018-02-11.19:26:24 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1518377184.59.0.467229070634.issue32806@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
This can be traced back to the following issue:
>>> c = compile("(lambda: re.findall('a', 'aaa'))()", "<stdin>", "single")
>>> import re as rea
>>> exec(c, None, {'re': rea})
NameError: name 're' is not defined.
Seeing disassembly of the compiled code, it used LOAD_GLOBAL to get re. This seems to be the problem. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-02-11 19:26:24 | nitishch | set | recipients: + nitishch, Yuri Kanivetsky |
| 2018-02-11 19:26:24 | nitishch | set | messageid: <1518377184.59.0.467229070634.issue32806@psf.upfronthosting.co.za> |
| 2018-02-11 19:26:24 | nitishch | link | issue32806 messages |
| 2018-02-11 19:26:24 | nitishch | create | |