(zelf: PyRef<Self>, options: Self::Args, vm: &VirtualMachine)
| 687 | type Args = ByteInnerNewOptions; |
| 688 | |
| 689 | fn init(zelf: PyRef<Self>, options: Self::Args, vm: &VirtualMachine) -> PyResult<()> { |
| 690 | // First unpack bytearray and *then* get a lock to set it. |
| 691 | let mut inner = options.get_bytearray_inner(vm)?; |
| 692 | core::mem::swap(&mut *zelf.inner_mut(), &mut inner); |
| 693 | Ok(()) |
| 694 | } |
| 695 | } |
| 696 | |
| 697 | impl Comparable for PyByteArray { |
nothing calls this directly
no test coverage detected