a = self.type2test('DNSSEC')
b = self.type2test('')
for c in a:
-## # Special case for the str8, since indexing returns a integer
-## # XXX Maybe it would be a good idea to seperate str8's tests...
-## if self.type2test == str8:
-## c = chr(c)
b += c
hash(b)
self.assertEqual(hash(a), hash(b))
test.buffer_tests.MixinBytesBufferCommonTests):
def marshal(self, x):
return bytearray(x)
- # TODO this should become:
- #return bytearray(x)
- # once the bytes -> bytearray and str8 -> bytes rename happens
def test_returns_new_copy(self):
val = self.marshal(b'1234')
/* Like _str, but create Unicode if necessary. */
PyDoc_STRVAR(PyTclObject_string__doc__,
-"the string representation of this object, either as str8 or str");
+"the string representation of this object, either as str or bytes");
static PyObject *
PyTclObject_string(PyTclObject *self, void *ignored)