(self)
Whether this path is a regular file (also True for symlinks pointing
        to regular files).
Whether this path is a regular file (also True for symlinks pointing
        to regular files).
Whether this path is a regular file ( also True for symlinks pointing to regular files ) .
def is_file(self):
        """
        Whether this path is a regular file (also True for symlinks pointing
        to regular files).
        """
        try:
            return S_ISREG(self.stat().st_mode)
        except OSError as e:
            if not _ignore_error(e):
                raise
            # Path doesn't exist or is a broken symlink
            # (see http://web.archive.org/web/20200623061726/https://bitbucket.org/pitrou/pathlib/issues/12/ )
            return False
        except ValueError:
            # Non-encodable path
            return False
def is_file ( self ) : try : return S_ISREG ( self . stat ( ) . st_mode ) except OSError as e : if not _ignore_error ( e ) : raise # Path doesn't exist or is a broken symlink # (see http://web.archive.org/web/20200623061726/https://bitbucket.org/pitrou/pathlib/issues/12/ ) return False except ValueError : # Non-encodable path return False