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

Method lastgroup

crates/vm/src/stdlib/_sre.rs:659–662  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

657
658 #[pygetset]
659 fn lastgroup(&self) -> Option<PyStrRef> {
660 let i = self.lastindex.to_usize()?;
661 self.pattern.indexgroup.get(i)?.clone()
662 }
663
664 #[pygetset]
665 fn re(&self) -> PyRef<Pattern> {

Callers

nothing calls this directly

Calls 3

to_usizeMethod · 0.45
cloneMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected