MCPcopy Index your code
hub / github.com/RustPython/RustPython / decode

Method decode

crates/vm/src/builtins/bytes.rs:602–604  ·  view source on GitHub ↗
(self, args: DecodeArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

600 /// currently, only 'utf-8' and 'ascii' implemented
601 #[pymethod]
602 fn decode(self, args: DecodeArgs, vm: &VirtualMachine) -> PyResult<PyStrRef> {
603 bytes_decode(self.into(), args, vm)
604 }
605}
606
607static BUFFER_METHODS: BufferMethods = BufferMethods {

Callers 1

into_code_objectMethod · 0.45

Calls 1

bytes_decodeFunction · 0.85

Tested by

no test coverage detected