(self, arg)
source expression
        Try to get source code for the given object and display it.
source expression
        Try to get source code for the given object and display it.
source expression Try to get source code for the given object and display it .
def do_source(self, arg):
        """source expression
        Try to get source code for the given object and display it.
        """
        try:
            obj = self._getval(arg)
        except:
            return
        try:
            lines, lineno = getsourcelines(obj)
        except (OSError, TypeError) as err:
            self.error(err)
            return
        self._print_lines(lines, lineno)
def do_source ( self , arg ) : try : obj = self . _getval ( arg ) except : return try : lines , lineno = getsourcelines ( obj ) except ( OSError , TypeError ) as err : self . error ( err ) return self . _print_lines ( lines , lineno )