Modifiers.with_properties()

Filter modifiers satisfying the given expression

with_properties(expr) -> Modifiers

E.g: expr = FunctionFilters.HAS_ARGS & ~FunctionFilters.HAS_ERRORS with_properties(expr) will return modifiers that have arguments and don't return errors.

Query Example

from glider import *

def query():
    return (
        Modifiers()
        .with_properties(FunctionFilters.HAS_GLOBAL_VARIABLES_READ | FunctionFilters.HAS_ERRORS)
        .exec(10)
    )

Example Output

Last updated