Skip to content

Instantly share code, notes, and snippets.

@abul4fia
abul4fia / 00README.md
Last active January 21, 2026 16:33
Code utilities

Code utilities

The module code_utils.py contains functions useful to deal with code.

Currently it only contains find_in_code() function, described below

find_in_code(code, string, lines)

Finds all occurrences of the string string in the code object code, optionally restricting the search to the lines specified in the lines