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

Function init

crates/vm/src/builtins/property.rs:403–416  ·  view source on GitHub ↗
(context: &'static Context)

Source from the content-addressed store, hash-verified

401}
402
403pub(crate) fn init(context: &'static Context) {
404 PyProperty::extend_class(context, context.types.property_type);
405
406 // This is a bit unfortunate, but this instance attribute overlaps with the
407 // class __doc__ string..
408 extend_class!(context, context.types.property_type, {
409 "__doc__" => context.new_static_getset(
410 "__doc__",
411 context.types.property_type,
412 PyProperty::doc_getter,
413 PyProperty::doc_setter,
414 ),
415 });
416}

Callers 1

clone_property_withMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected