(self)
return list(set(item.name for item in self.list))
Dictionary style keys() method.
Dictionary style keys() method.
Dictionary style keys () method .
def keys(self):
        """Dictionary style keys() method."""
        if self.list is None:
            raise TypeError("not indexable")
        return list(set(item.name for item in self.list))
def keys ( self ) : if self . list is None : raise TypeError ( "not indexable" ) return list ( set ( item . name for item in self . list ) )