classification
Title: inspect.getfile should raise a TypeError if C object does not have __module__
Type: Stage:
Components: Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ncoghlan, python-dev, serhiy.storchaka, yselivanov
Priority: high Keywords: patch

Created on 2014-01-23 20:26 by yselivanov, last changed 2014-01-27 22:30 by yselivanov. This issue is now closed.

Files
File name Uploaded Description Edit
getfile_patch_01.patch yselivanov, 2014-01-23 20:26 review
Messages (2)
msg208988 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2014-01-23 20:26
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.
msg209458 - (view) Author: Roundup Robot (python-dev) Date: 2014-01-27 18:35
New changeset 50706164c38f by Yury Selivanov in branch 'default':
inspect.getfile: Don't crash on classes without '__module__' attribute #20372
http://hg.python.org/cpython/rev/50706164c38f
History
Date User Action Args
2014-01-27 22:30:40yselivanovsetresolution: fixed
2014-01-27 18:36:03yselivanovsetstatus: open -> closed
2014-01-27 18:35:40python-devsetnosy: + python-dev
messages: + msg209458
2014-01-23 20:26:09yselivanovcreate