pub fn bytearray_from_object(
vm: &VirtualMachine,
obj: &PyObject,
) -> PyResult<Vec<u8>>Expand description
bytes_from_object for the bytearray constructor and for assigning to a
slice of one, which run the iterator without asking the object they were
handed how long it is.