def source(object):
 print(('In file: %s' % inspect.getsourcefile(object)))
 print(inspect.getsource(object))

def source ( object ) : print ( ( 'In file: %s' % inspect . getsourcefile ( object ) ) ) print ( inspect . getsource ( object ) )
require a package source .