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

Function global_ident

crates/stdlib/src/syslog.rs:59–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 fn global_ident() -> &'static PyRwLock<Option<GlobalIdent>> {
60 rustpython_common::static_cell! {
61 static IDENT: PyRwLock<Option<GlobalIdent>>;
62 };
63 IDENT.get_or_init(|| PyRwLock::new(None))
64 }
65
66 #[derive(Default, FromArgs)]
67 struct OpenLogArgs {

Callers 3

openlogFunction · 0.85
syslogFunction · 0.85
closelogFunction · 0.85

Calls 2

newFunction · 0.85
get_or_initMethod · 0.45

Tested by

no test coverage detected