Never use print for debugging again
This report summarizes scanner evidence for cool-RR/PySnooper, a Python project with 16,577 GitHub stars. SynthScan examined 6,960 lines of code across 37 source files, recording 190 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 32.8 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 98 finding(s).
Are imports declared and package/API names verified? 64 finding(s).
Are wrappers, guards, and repeated structures necessary? 65 finding(s).
Which changes need focused human review? 190 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 190 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pysnooper/__init__.py | 20 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/utils.py | 8 | CODE | |
| LOW | pysnooper/pycompat.py | 68 | CODE | |
| LOW | pysnooper/pycompat.py | 70 | CODE | |
| LOW | pysnooper/tracer.py | 14 | CODE | |
| LOW | tests/test_pysnooper.py | 8 | CODE | |
| LOW | tests/test_pysnooper.py | 18 | CODE | |
| LOW | tests/test_chinese.py | 5 | CODE | |
| LOW | tests/test_chinese.py | 6 | CODE | |
| LOW | tests/test_chinese.py | 7 | CODE | |
| LOW | tests/test_chinese.py | 8 | CODE | |
| LOW | tests/test_chinese.py | 9 | CODE | |
| LOW | tests/test_chinese.py | 11 | CODE | |
| LOW | tests/test_chinese.py | 12 | CODE | |
| LOW | tests/test_chinese.py | 16 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_not_implemented.py | 4 | CODE | |
| LOW | tests/test_not_implemented.py | 6 | CODE | |
| LOW | tests/test_not_implemented.py | 7 | CODE | |
| LOW | tests/test_not_implemented.py | 8 | CODE | |
| LOW | tests/test_not_implemented.py | 9 | CODE | |
| LOW | tests/test_not_implemented.py | 12 | CODE | |
| LOW | tests/test_not_implemented.py | 16 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 23 | CODE | |
| LOW | tests/test_utils/test_regex.py | 4 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 4 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 5 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 6 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 7 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 8 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 9 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 11 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 12 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 14 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 15 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pysnooper/variables.py | 73 | except Exception: | CODE |
| HIGH | pysnooper/tracer.py | 80 | except KeyError: | CODE |
| HIGH | pysnooper/tracer.py | 88 | except ImportError: | CODE |
| HIGH | pysnooper/tracer.py | 101 | except Exception: | CODE |
| HIGH | pysnooper/tracer.py | 111 | except Exception: | CODE |
| HIGH | pysnooper/tracer.py | 118 | except Exception: | CODE |
| HIGH | pysnooper/tracer.py | 124 | except utils.file_reading_errors: | CODE |
| HIGH | tests/mini_toolbox/pathlib.py | 1439 | except OSError: | CODE |
| HIGH | tests/samples/exception.py | 20 | except: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_pysnooper.py | 30 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 43 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 191 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 206 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 222 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 250 | CallEntry('def my_function(foo):', | CODE |
| LOW | tests/test_pysnooper.py | 268 | CallEntry('def my_function(foo):', | CODE |
| LOW | tests/test_pysnooper.py | 286 | CallEntry('def my_function(foo):', | CODE |
| LOW | tests/test_pysnooper.py | 311 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 324 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 352 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 368 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 401 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 417 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 460 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 475 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 507 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 522 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 543 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 557 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 572 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 586 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 601 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 615 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 634 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 647 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 769 | def my_function(_foo): | CODE |
| LOW | tests/test_pysnooper.py | 783 | CallEntry('def my_function(_foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 809 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 822 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 905 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 920 | CallEntry('def my_function(foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 939 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 954 | CallEntry('def my_function(foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 965 | CallEntry('def my_function(foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 982 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 1508 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 1533 | def my_method(self, foo): | STRING |
| LOW | tests/test_pysnooper.py | 1553 | CallEntry('def my_method(self, foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 1581 | def my_method(self, foo): | STRING |
| LOW | tests/test_pysnooper.py | 1631 | def my_method(self, foo): | STRING |
| LOW | tests/test_pysnooper.py | 1657 | CallEntry('def my_method(self, foo):'), | STRING |
| LOW | tests/mini_toolbox/contextlib.py | 155 | def helper(*args, **kwds): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | misc/generate_authors.py | 36 | def iterate_authors_by_chronological_order(branch): | CODE |
| LOW | pysnooper/tracer.py | 73 | def get_path_and_source_from_frame(frame): | CODE |
| LOW | tests/test_mini_toolbox.py | 9 | def test_output_capturer_doesnt_swallow_exceptions(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 23 | def test_negative_f_lasti_is_not_an_exception(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 31 | def test_last_opcode_return_is_normal_return(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 36 | def test_last_opcode_not_return_is_exception(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 41 | def test_non_return_event_is_never_exception(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 46 | def test_unstarted_generator_close_is_not_an_exception(): | CODE |
| LOW | tests/utils.py | 43 | def is_compatible_with_current_python_version(self): | CODE |
| LOW | tests/test_pysnooper.py | 498 | def test_single_watch_no_comma(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 570 | def test_long_variable_with_custom_max_variable_length(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 599 | def test_long_variable_with_infinite_max_variable_length(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 798 | def test_confusing_decorator_lines(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 899 | def test_no_overwrite_by_default(): | STRING |
| LOW | tests/test_pysnooper.py | 978 | def test_error_in_overwrite_argument(): | STRING |
| LOW | tests/test_pysnooper.py | 1566 | def test_class_with_decorated_method(normalize): | STRING |
| LOW | tests/test_pysnooper.py | 1615 | def test_class_with_decorated_method_and_snoop_applied_to_method(normalize): | STRING |
| LOW | tests/test_pysnooper.py | 1756 | def test_snooping_on_class_does_not_cause_base_class_to_be_snooped(normalize): | STRING |
| LOW | tests/test_pysnooper.py | 1866 | def test_normalize_thread_info(): | STRING |
| LOW | tests/test_pysnooper.py | 1943 | def test_nested_exception_group(): | STRING |
| LOW | tests/test_pysnooper.py | 2082 | def test_valid_damaged_zipfile(): | STRING |
| LOW | tests/test_not_implemented.py | 26 | def test_rejecting_coroutine_functions(): | CODE |
| LOW | tests/test_not_implemented.py | 44 | def test_rejecting_async_generator_functions(): | STRING |
| LOW | tests/mini_toolbox/contextlib.py | 274 | def _reraise_with_existing_context(exc_details): | CODE |
| LOW | tests/mini_toolbox/contextlib.py | 290 | def _reraise_with_existing_context(exc_details): | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 68 | def _try_except_fileexistserror(try_func, except_func, else_func=None): | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 90 | def _try_except_filenotfounderror(try_func, except_func): | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 106 | def _try_except_permissionerror_iter(try_iter, except_iter): | CODE |
| LOW | tests/test_utils/test_regex.py | 7 | def test_ansible_filename_pattern(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pysnooper/variables.py | 33 | except Exception: | CODE |
| LOW | pysnooper/variables.py | 61 | except Exception: | CODE |
| LOW | pysnooper/variables.py | 73 | except Exception: | CODE |
| MEDIUM | pysnooper/variables.py | 30 | def items(self, frame, normalize=False): | CODE |
| MEDIUM | pysnooper/variables.py | 69 | def _safe_keys(self, main_value): | CODE |
| LOW | pysnooper/utils.py | 72 | except Exception: | CODE |
| LOW⚡ | pysnooper/tracer.py | 101 | except Exception: | CODE |
| LOW⚡ | pysnooper/tracer.py | 111 | except Exception: | CODE |
| LOW⚡ | pysnooper/tracer.py | 118 | except Exception: | CODE |
| LOW | pysnooper/tracer.py | 351 | except Exception as e: | CODE |
| LOW | tests/mini_toolbox/__init__.py | 97 | except Exception: | CODE |
| LOW | tests/samples/exception.py | 11 | except Exception: | CODE |
| MEDIUM | tests/samples/exception.py | 8 | def bar(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/mini_toolbox/contextlib.py | 336 | self.push(_exit_wrapper) | CODE |
| HIGH | tests/mini_toolbox/contextlib.py | 368 | self.push(_exit_wrapper) | CODE |
| HIGH | tests/mini_toolbox/contextlib.py | 430 | return self.push(callback) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pysnooper/utils.py | 11 | CODE | |
| LOW | pysnooper/tracer.py | 73 | CODE | |
| LOW | pysnooper/tracer.py | 420 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 106 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 202 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 286 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 331 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 395 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 688 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 733 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 818 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 689 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 734 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/mini_toolbox/pathlib.py | 676 | CODE | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 704 | CODE | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 728 | CODE | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 750 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/utils.py | 123 | # Todo: Looking at this class, we could rework the hierarchy. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pysnooper/tracer.py | 253 | CODE | |
| LOW | tests/utils.py | 136 | CODE | |
| LOW | tests/utils.py | 418 | CODE | |
| LOW | tests/test_pysnooper.py | 1805 | CODE | |
| LOW | tests/test_pysnooper.py | 1842 | CODE | |
| LOW | tests/test_pysnooper.py | 1878 | CODE | |
| LOW | tests/test_pysnooper.py | 1572 | CODE | |
| LOW | tests/test_pysnooper.py | 1621 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # | COMMENT |
| LOW | .travis.yml | 41 | # script: skip | COMMENT |
| LOW | tests/mini_toolbox/contextlib.py | 101 | # was passed to throw(). This prevents a StopIteration | COMMENT |
| LOW | tests/mini_toolbox/contextlib.py | 241 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/mini_toolbox/contextlib.py | 8 | __all__ = ["contextmanager", "closing", "ContextDecorator", "ExitStack", | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 51 | __all__ = [ | CODE |