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

Method slot_new

crates/vm/src/stdlib/time.rs:953–956  ·  view source on GitHub ↗
(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

951 impl PyStructTime {
952 #[pyslot]
953 fn slot_new(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine) -> PyResult {
954 let (seq, _dict): (PyObjectRef, OptionalArg<PyObjectRef>) = args.bind(vm)?;
955 struct_sequence_new(cls, seq, vm)
956 }
957 }
958
959 /// Extract fields from StructTimeData into a libc::tm for mktime.

Callers

nothing calls this directly

Calls 2

struct_sequence_newFunction · 0.85
bindMethod · 0.45

Tested by

no test coverage detected