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

Method is_trace_event

crates/vm/src/protocol/callable.rs:150–155  ·  view source on GitHub ↗

Whether sys.settrace receives this event.

(&self)

Source from the content-addressed store, hash-verified

148impl TraceEvent {
149 /// Whether sys.settrace receives this event.
150 fn is_trace_event(&self) -> bool {
151 matches!(
152 self,
153 Self::Call | Self::Return | Self::Exception | Self::Line | Self::Opcode
154 )
155 }
156
157 /// Whether sys.setprofile receives this event.
158 /// In legacy_tracing.c, profile callbacks are only registered for

Callers 1

_trace_event_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected