コード例 #1
0
 def __init__(self, data):
     check_list_of_chars(data)
     self._data = resizable_list_supporting_raw_ptr(data)
     self._offset = 0
     # NOTE: the bytearray data is in 'self._data[self._offset:]'
     check_nonneg(self._offset)
     _tweak_for_tests(self)
コード例 #2
0
ファイル: test_debug.py プロジェクト: Darriall/pypy
 def f(x):
     result = []
     check_list_of_chars(result)
     result = [chr(x), 'a']
     check_list_of_chars(result)
     result = [unichr(x)]
     check_list_of_chars(result)
     return result
コード例 #3
0
 def f(x):
     result = []
     check_list_of_chars(result)
     result = [chr(x), 'a']
     check_list_of_chars(result)
     result = [unichr(x)]
     check_list_of_chars(result)
     return result
コード例 #4
0
ファイル: test_debug.py プロジェクト: Darriall/pypy
 def g(x):
     result = ['a', 'b', 'c', '']
     check_list_of_chars(result)
     return x
コード例 #5
0
ファイル: values.py プロジェクト: uternet/pycket
 def __init__(self, bs):
     assert bs is not None
     self.value = check_list_of_chars(bs)
     make_sure_not_resized(self.value)
コード例 #6
0
 def g(x):
     result = ['a', 'b', 'c', '']
     check_list_of_chars(result)
     return x
コード例 #7
0
ファイル: bytearrayobject.py プロジェクト: abhinavthomas/pypy
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = data
コード例 #8
0
ファイル: values.py プロジェクト: antongulenko/pycket
 def __init__(self, bs, immutable=True):
     assert bs is not None
     self.value = check_list_of_chars(bs)
     make_sure_not_resized(self.value)
     self.imm   = immutable
コード例 #9
0
 def __init__(self, bs):
     assert bs is not None
     self.value = check_list_of_chars(bs)
     make_sure_not_resized(self.value)
コード例 #10
0
ファイル: bytearrayobject.py プロジェクト: zielmicha/pypy
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = data
コード例 #11
0
ファイル: bytearrayobject.py プロジェクト: fhalde/pypy
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = resizable_list_supporting_raw_ptr(data)
コード例 #12
0
ファイル: bytearrayobject.py プロジェクト: mozillazg/pypy
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = resizable_list_supporting_raw_ptr(data)