Scenario:
I am working with python to execute some functions in cycle... over and over again.
How I do it:
I create a list with all the functions I want to execute, and then I do so.
# Define the functions before using 'em
def this_f:
pass
def the_other:
pass
....
# List of f() I want to run
funciones_escrapeadoras = [
this_f,
the_other,
...
]
# Call them all, cyclically
while True:
for funcion_escrapeadora in funciones_escrapeadoras:
funcion_escrapeadora()
Question:
If I prefixed all the functions I want to be part of the list, is there a way to automatically identify them and put them into that list?
Example:
I define the functions:
autorun_lalaa, hello_world, autorun_lololo, ...
And only autorun_lalaa and autorun_lololo and autorun_* will be part of the list.
Purpose:
To add in the functions I want to run, without needing to update the list.