Message291668
At the very least, the inspect module should use more duck-typing internally. For example, consider this code from "getfile":
if ismethod(object):
object = object.__func__
if isfunction(object):
object = object.__code__
if istraceback(object):
object = object.tb_frame
if isframe(object):
object = object.f_code
if iscode(object):
return object.co_filename |
|
Date |
User |
Action |
Args |
2017-04-14 15:03:39 | jdemeyer | set | recipients:
+ jdemeyer, scoder, steven.daprano, r.david.murray, serhiy.storchaka |
2017-04-14 15:03:39 | jdemeyer | set | messageid: <1492182219.16.0.851558219957.issue30071@psf.upfronthosting.co.za> |
2017-04-14 15:03:39 | jdemeyer | link | issue30071 messages |
2017-04-14 15:03:38 | jdemeyer | create | |
|