示例#1
0
文件: symbol.py 项目: codeape2/pixie
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))
示例#2
0
def _hash(self):
    return rt.wrap(intmask(util.hash_unencoded_chars(self._str)))
示例#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))
示例#4
0
def _hash(self):
    assert isinstance(self, String)
    return rt.wrap(intmask(util.hash_unencoded_chars(self._str)))
示例#5
0
def _hash(self):
    assert isinstance(self, String)
    return rt.wrap(intmask(util.hash_unencoded_chars(self._str)))
示例#6
0
def _hash(self):
    return numbers.Integer(intmask(util.hash_unencoded_chars(self._str)))