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

Method encode

crates/vm/Lib/core_modules/codecs.py:141–158  ·  view source on GitHub ↗

Encodes the object input and returns a tuple (output object, length consumed). errors defines the error handling to apply. It defaults to 'strict' handling. The method may not store state in the Codec instance. Use StreamWriter for codec

(self, input, errors='strict')

Source from the content-addressed store, hash-verified

Callers 5

readMethod · 0.45
readlineMethod · 0.45
readlinesMethod · 0.45
__next__Method · 0.45
iterencodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected