You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inspect.getfile should raise a TypeError if C object does not have __module__ #64571
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2014-01-27.18:36:03.813>created_at=<Date2014-01-23.20:26:09.887>labels= []
title='inspect.getfile should raise a TypeError if C object does not have __module__'updated_at=<Date2014-01-27.22:30:40.882>user='https://github.com/1st1'
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.
Activity
1st1 commentedon Jan 23, 2014
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.
python-dev commentedon Jan 27, 2014
New changeset 50706164c38f by Yury Selivanov in branch 'default':
inspect.getfile: Don't crash on classes without '__module__' attribute bpo-20372
http://hg.python.org/cpython/rev/50706164c38f