def nextLine():
 caller = currentframe(1)
 return (getsourcefile(sys.modules[caller.f_globals['__name__']]), (caller.f_lineno + 1))

def nextLine ( ) : caller = currentframe ( 1 ) return ( getsourcefile ( sys . modules [ caller . f_globals [ '__name__' ] ] ) , ( caller . f_lineno + 1 ) )
retrive the file name and line number immediately after where this function is called .