smpl_debug.debug.check_count¶
- smpl_debug.debug.check_count(line, fname, t)[source]¶
Returns true if the count of the line is greater than or equal to
t.Parameters¶
- lineint
The line in the python source of
fname.- fnamestr
The filename.
- tint
The count to check against.
Returns¶
- bool
True if the count of the line is greater than or equal to
t.
Examples¶
>>> check_count(2, "debug.py", 0) True >>> inc_count(2, "debug.py") >>> check_count(2, "debug.py", 0) False