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

Method take_keyword

crates/vm/src/function/argument.rs:260–262  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

258 }
259
260 pub fn take_keyword(&mut self, name: &str) -> Option<PyObjectRef> {
261 self.kwargs.swap_remove(name)
262 }
263
264 pub fn remaining_keywords(&mut self) -> impl Iterator<Item = (String, PyObjectRef)> + '_ {
265 self.kwargs.drain(..)

Callers 4

min_or_maxFunction · 0.80
from_argsMethod · 0.80
start_joinable_threadFunction · 0.80

Calls 1

swap_removeMethod · 0.80

Tested by

no test coverage detected