Issue 6707: dir() on new'd module w/o dict crashes 2.6.2 (original) (raw)

Issue6707

Created on 2009-08-14 23:06 by dino.viehland, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg91580 - (view) Author: Dino Viehland (dino.viehland) * (Python committer) Date: 2009-08-14 23:06
from types import ModuleType as M m = M.__new__(M) dir(m) In 2.5 this raises an exception about not having __dict__, 2.6.2 crashes out right.
msg91606 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-08-15 13:16
Thanks for the report! Fixed in r74457.
History
Date User Action Args
2022-04-11 14:56:51 admin set github: 50956
2009-08-15 13:16:58 benjamin.peterson set status: open -> closednosy: + benjamin.petersonmessages: + resolution: fixed
2009-08-14 23:06:41 dino.viehland create