Skip to main content

is_python_source_safe

Function is_python_source_safe 

Source
pub fn is_python_source_safe(source: &str) -> bool
Expand description

Check whether inline Python source appears safe to execute.

This is a heuristic check — it may have false positives (blocking safe code) but should not have false negatives (allowing dangerous code).