Message75600
Christian,
The initial example only works in interactive mode.
To make your script crash, you have to set
__builtins__._ = Crasher()
There are several other places where Crasher() will crash on shutdown:
sys.argv.insert(0, Crasher())
sys.ps1 = Crasher()
sys.last_type = Crasher()
sys.path_hooks.append(Crasher())
sys.path_importer_cache[''] = Crasher()
But
sys.meta_path.append(Crasher())
does not crash. |
|
Date |
User |
Action |
Args |
2008-11-07 09:12:16 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, loewis, barry, vstinner, christian.heimes |
2008-11-07 09:12:16 | amaury.forgeotdarc | set | messageid: <1226049136.35.0.268993123807.issue4236@psf.upfronthosting.co.za> |
2008-11-07 09:12:15 | amaury.forgeotdarc | link | issue4236 messages |
2008-11-07 09:12:14 | amaury.forgeotdarc | create | |
|