Exemple #1
0
def _hash(self):
    assert isinstance(self, Symbol)
    if self._hash == 0:
        self._hash = util.hash_unencoded_chars(self._str)
    return rt.wrap(intmask(self._hash))
Exemple #2
0
def _hash(self):
    return rt.wrap(intmask(util.hash_unencoded_chars(self._str)))
Exemple #3
0
def _hash(self):
    assert isinstance(self, Keyword)
    if self._hash == 0:
        self._hash = util.hash_unencoded_chars(self._str)
    return rt.wrap(intmask(self._hash))
Exemple #4
0
def _hash(self):
    assert isinstance(self, String)
    return rt.wrap(intmask(util.hash_unencoded_chars(self._str)))
Exemple #5
0
def _hash(self):
    assert isinstance(self, String)
    return rt.wrap(intmask(util.hash_unencoded_chars(self._str)))
Exemple #6
0
def _hash(self):
    return numbers.Integer(intmask(util.hash_unencoded_chars(self._str)))