Issue 20372: inspect.getfile should raise a TypeError if C object does not have module (original ) (raw ) Issue20372
Created on 2014-01-23 20:26 by yselivanov , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (2)
msg208988 - (view)
Author: Yury Selivanov (yselivanov) *
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
2022-04-11 14:57:57
admin
set
github: 64571
2014-01-27 22:30:40
yselivanov
set
resolution: fixed
2014-01-27 18:36:03
yselivanov
set
status: open -> closed
2014-01-27 18:35:40
python-dev
set
nosy: + python-dev messages: +
2014-01-23 20:26:09
yselivanov
create