pgn_read/core/piece.py
def key_str(self):
        """Concatenation of <file>, <name>, and rank.

        <file> is upper case file name for white pawn or file name otherwise.

        <name> is upper case piece name for white pawn or piece name otherwise.

        It is a plausible component of database keys for positions.
        
        """
        p = self.name
        if p not in FEN_PAWNS:
            return self.square.file.join((p, self.square.rank))
        elif p == FEN_WHITE_PAWN:
            return self.square.file.upper().join((PGN_PAWN, self.square.rank))
        else:
            return self.square.file.join((PGN_PAWN, self.square.rank))
Concatenation of <file>, <name>, and rank.

        <file> is upper case file name for white pawn or file name otherwise.

        <name> is upper case piece name for white pawn or piece name otherwise.

        It is a plausible component of database keys for positions.
        
        
Concatenation of , , and rank.
 is upper case file name for white pawn or file name otherwise.

 is upper case piece name for white pawn or piece name otherwise.

It is a plausible component of database keys for positions.
Concatenation of and rank . is upper case file name for white pawn or file name otherwise . is upper case piece name for white pawn or piece name otherwise . It is a plausible component of database keys for positions .
def key_str(self):
        p = self.name
        if p not in FEN_PAWNS:
            return self.square.file.join((p, self.square.rank))
        elif p == FEN_WHITE_PAWN:
            return self.square.file.upper().join((PGN_PAWN, self.square.rank))
        else:
            return self.square.file.join((PGN_PAWN, self.square.rank))
def key_str ( self ) : p = self . name if p not in FEN_PAWNS : return self . square . file . join ( ( p , self . square . rank ) ) elif p == FEN_WHITE_PAWN : return self . square . file . upper ( ) . join ( ( PGN_PAWN , self . square . rank ) ) else : return self . square . file . join ( ( PGN_PAWN , self . square . rank ) )
Concatenation of <file>, <name>, and rank.
Concatenation of <file > <name > and rank .
"""Concatenation of <file>, <name>, and rank.

        <file> is upper case file name for white pawn or file name otherwise.

        <name> is upper case piece name for white pawn or piece name otherwise.

        It is a plausible component of database keys for positions.
        
        """
self