Esempio n. 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)
Esempio n. 2
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
Esempio n. 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
Esempio n. 4
0
 def g(x):
     result = ['a', 'b', 'c', '']
     check_list_of_chars(result)
     return x
Esempio n. 5
0
 def __init__(self, bs):
     assert bs is not None
     self.value = check_list_of_chars(bs)
     make_sure_not_resized(self.value)
Esempio n. 6
0
 def g(x):
     result = ['a', 'b', 'c', '']
     check_list_of_chars(result)
     return x
Esempio n. 7
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = data
Esempio n. 8
0
 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
Esempio n. 9
0
 def __init__(self, bs):
     assert bs is not None
     self.value = check_list_of_chars(bs)
     make_sure_not_resized(self.value)
Esempio n. 10
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = data
Esempio n. 11
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = resizable_list_supporting_raw_ptr(data)
Esempio n. 12
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = resizable_list_supporting_raw_ptr(data)