New submission from Yury Selivanov: I'm not sure if it is right to fix the inspect module, instead of making all C objects to have the '__module__' attribute (is it even possible?), but if it is, the patch is attached.
---------- files: getfile_patch_01.patch keywords: patch messages: 208988 nosy: ncoghlan, serhiy.storchaka, yselivanov priority: high severity: normal status: open title: inspect.getfile should raise a TypeError if C object does not have __module__ Added file: http://bugs.python.org/file33667/getfile_patch_01.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20372> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com