Callables.with_arg_name()

with_arg_name(arg_name: str, sensitivity: bool = True) → Callables

Adds a filter to get callables having specified argument name. Returns a filtered Callables child object. This method can be called on all Callables child classes: Functions and Modifiers.

Functions Example

from glider import *

def query():
  # Retrieve the functions that have `_address` as one of their arguments
  functions = Functions().with_arg_name("_address").exec(100)

  # Return the first five functions
  return functions[:5]

Output:

Modifiers Example

from glider import *

def query():
  # Retrieve the modifiers that have `_caller` as one of their arguments
  modifiers = Modifiers().with_arg_name("_caller").exec(100)

  # Return the first five modifiers
  return modifiers[:5]

Output:

Last updated