[docs] [issue19472] inspect.getsource() raises a wrong exception type

Yury Selivanov report at bugs.python.org
Fri Oct 3 23:17:09 CEST 2014

Yury Selivanov added the comment:

> @Yury do you agree with this?

I think it's a perfectly normal behaviour. OSError is raised for valid kind of objects, and TypeError is raised when you're passing something weird. That's a pretty common practice is Python.


Python tracker <report at bugs.python.org>

More information about the docs mailing list