This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: dir() on __new__'d module w/o dict crashes 2.6.2
Type: Stage:
Components: Interpreter Core Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, dino.viehland
Priority: normal Keywords:

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:51adminsetgithub: 50956
2009-08-15 13:16:58benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg91606

resolution: fixed
2009-08-14 23:06:41dino.viehlandcreate