Message157826
| Author |
vstinner |
| Recipients |
ezyang, ned.deily, vstinner |
| Date |
2012年04月08日.23:48:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333928929.17.0.570232129064.issue14531@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The filename is retrieved from: traceback->frame->f_code->co_filename. co_filename is an arbitrary string. Example:
>>> exec(compile("1+a", "/etc/passwd", "exec"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/etc/passwd", line 1, in <module>
root:x:0:0:root:/root:/bin/bash
NameError: name 'a' is not defined
"root:x:0:0:root:/root:/bin/bash" is the first line of the /etc/passwd file. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月08日 23:48:49 | vstinner | set | recipients:
+ vstinner, ned.deily, ezyang |
| 2012年04月08日 23:48:49 | vstinner | set | messageid: <1333928929.17.0.570232129064.issue14531@psf.upfronthosting.co.za> |
| 2012年04月08日 23:48:48 | vstinner | link | issue14531 messages |
| 2012年04月08日 23:48:48 | vstinner | create |
|