Ejemplo 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)
Ejemplo 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
Ejemplo 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
Ejemplo n.º 4
0
 def g(x):
     result = ['a', 'b', 'c', '']
     check_list_of_chars(result)
     return x
Ejemplo 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)
Ejemplo n.º 6
0
 def g(x):
     result = ['a', 'b', 'c', '']
     check_list_of_chars(result)
     return x
Ejemplo n.º 7
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = data
Ejemplo 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
Ejemplo 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)
Ejemplo n.º 10
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = data
Ejemplo n.º 11
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = resizable_list_supporting_raw_ptr(data)
Ejemplo n.º 12
0
 def __init__(self, data):
     check_list_of_chars(data)
     self.data = resizable_list_supporting_raw_ptr(data)