A Python Interpreter written in Rust
This report summarizes scanner evidence for RustPython/RustPython, a Rust project with 22,393 GitHub stars. SynthScan examined 1,447,094 lines of code across 3092 source files, recording 17683 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 17.1 (Elevated 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? 13314 finding(s).
Are imports declared and package/API names verified? 1105 finding(s).
Are wrappers, guards, and repeated structures necessary? 13686 finding(s).
Which changes need focused human review? 17683 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 17683 distinct pattern matches across 26 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 |
|---|---|---|---|---|
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 475 | except _DeadlockError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 698 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 782 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 708 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 743 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 771 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 777 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 895 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 905 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 910 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1167 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 790 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 797 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 804 | except AttributeError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 942 | except KeyError: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1067 | except AttributeError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1529 | except Exception: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 373 | except NotImplementedError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 587 | except OSError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1499 | except AttributeError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 217 | except OSError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 581 | except ImportError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 615 | except ImportError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 846 | except OSError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 907 | except NotImplementedError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 852 | except OSError: | CODE |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 883 | except (ImportError, EOFError): | CODE |
| HIGH | crates/vm/Lib/python_builtins/_thread.py | 72 | except SystemExit: | CODE |
| HIGH | crates/vm/Lib/python_builtins/_thread.py | 94 | except SystemExit: | CODE |
| HIGH | crates/vm/Lib/core_modules/copyreg.py | 158 | except: | CODE |
| HIGH | scripts/dis_dump.py | 183 | except Exception: | CODE |
| HIGH | scripts/codspeed-environment.py | 154 | except OSError: | CODE |
| HIGH | scripts/generate_sre_constants.py | 12 | except (OSError, ValueError): | CODE |
| HIGH | scripts/update_lib/deps.py | 233 | except Exception: | CODE |
| HIGH | scripts/update_lib/deps.py | 1404 | except Exception: | CODE |
| HIGH | scripts/update_lib/deps.py | 1444 | except Exception: | CODE |
| HIGH | scripts/update_lib/deps.py | 1480 | except Exception: | CODE |
| HIGH | scripts/update_lib/deps.py | 1520 | except Exception: | CODE |
| HIGH | scripts/update_lib/patch_spec.py | 468 | except SyntaxError: | CODE |
| HIGH | Lib/shutil.py | 453 | except NotImplementedError: | CODE |
| HIGH | Lib/shutil.py | 708 | except FileNotFoundError: | CODE |
| HIGH | Lib/shutil.py | 299 | except OSError: | CODE |
| HIGH | Lib/shutil.py | 788 | except OSError: | CODE |
| HIGH | Lib/shutil.py | 321 | except _GiveupOnFastCopy: | CODE |
| HIGH | Lib/shutil.py | 330 | except _GiveupOnFastCopy: | CODE |
| HIGH | Lib/shutil.py | 336 | except _GiveupOnFastCopy: | CODE |
| HIGH | Lib/tempfile.py | 279 | except AttributeError: | CODE |
| HIGH | Lib/tempfile.py | 213 | except FileExistsError: | CODE |
| HIGH | Lib/tempfile.py | 677 | except OSError: | CODE |
| HIGH | Lib/tempfile.py | 948 | except FileNotFoundError: | CODE |
| HIGH | Lib/tempfile.py | 468 | except FileNotFoundError: | CODE |
| HIGH | Lib/_pyio.py | 2145 | except AttributeError: | CODE |
| HIGH | Lib/_pyio.py | 2151 | except AttributeError: | CODE |
| HIGH | Lib/_pyio.py | 1596 | except AttributeError: | CODE |
| HIGH | Lib/_pyio.py | 2503 | except LookupError: | CODE |
| HIGH | Lib/_pyio.py | 1713 | except OSError: | CODE |
| HIGH | Lib/_pyio.py | 2127 | except LookupError: | CODE |
| HIGH | Lib/pkgutil.py | 206 | except ImportError: | CODE |
| HIGH | Lib/pkgutil.py | 228 | except ImportError: | CODE |
| HIGH | Lib/_dummy_thread.py | 72 | except SystemExit: | CODE |
| 1568 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/opcode_metadata/opcodes.py | 119 | def properties_with_pseudo_flags(instr): | CODE |
| LOW | crates/capi/src/ceval.rs | 262 | def optimized_with_custom_locals(): | CODE |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 483 | def _call_with_frames_removed(f, *args, **kwds): | CODE |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 504 | def _requires_builtin_wrapper(self, fullname): | CODE |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 878 | def _load_backward_compatible(spec): | CODE |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1565 | def _install_external_importers(): | CODE |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1534 | def _get_supported_file_loaders(): | CODE |
| LOW | crates/doc/generate.py | 259 | def iter_native_on_python_modules( | CODE |
| LOW⚡ | scripts/dis_dump.py | 195 | def _metadata_cache_slot_offsets(inst): | CODE |
| LOW | scripts/whats_left.py | 374 | def _is_decimal_fallback_item(item): | CODE |
| LOW | scripts/whats_left.py | 509 | def method_incompatibility_reason(typ, method_name, real_method_value): | STRING |
| LOW | scripts/update_lib/deps.py | 245 | def clear_import_graph_caches() -> None: | CODE |
| LOW | scripts/update_lib/deps.py | 1323 | def _parse_test_submodule_imports(content: str) -> dict[str, set[str]]: | CODE |
| LOW | scripts/update_lib/deps.py | 1527 | def _get_lib_modules_importing( | CODE |
| LOW | scripts/update_lib/deps.py | 1608 | def find_dependent_tests_tree( | CODE |
| LOW | scripts/update_lib/cmd_auto_mark.py | 253 | def _expand_stripped_to_children( | CODE |
| LOW | scripts/update_lib/cmd_auto_mark.py | 620 | def strip_reasonless_expected_failures( | CODE |
| LOW | scripts/update_lib/cmd_deps.py | 276 | def _format_dependent_tests_tree( | CODE |
| LOW | scripts/update_lib/patch_spec.py | 268 | def modification_from_node_specs(node, specs): | CODE |
| LOW | scripts/update_lib/tests/test_deps.py | 29 | def test_from_test_dot_module(self): | STRING |
| LOW⚡ | scripts/update_lib/tests/test_deps.py | 47 | def test_regular_imports_ignored(self): | STRING |
| LOW⚡ | scripts/update_lib/tests/test_deps.py | 57 | def test_syntax_error_returns_empty(self): | STRING |
| LOW⚡ | scripts/update_lib/tests/test_deps.py | 67 | def test_auto_detect_py_module(self): | CODE |
| LOW | scripts/update_lib/tests/test_deps.py | 167 | def test_transitive_data_dependency(self): | CODE |
| LOW | scripts/update_lib/tests/test_deps.py | 238 | def test_syntax_error_returns_empty(self): | STRING |
| LOW | scripts/update_lib/tests/test_deps.py | 244 | def test_relative_import_skipped(self): | CODE |
| LOW | scripts/update_lib/tests/test_deps.py | 316 | def test_identical_directories(self): | CODE |
| LOW⚡ | scripts/update_lib/tests/test_auto_mark.py | 655 | def test_partial_children_fail_marks_children(self): | CODE |
| LOW⚡ | scripts/update_lib/tests/test_auto_mark.py | 660 | def test_child_with_own_override_not_consolidated(self): | CODE |
| LOW⚡ | scripts/update_lib/tests/test_auto_mark.py | 665 | def test_strip_then_consolidate_restores_parent_marker(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 69 | def test_parse_fail_and_error(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 260 | def test_collect_unexpected_successes(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 272 | def test_module_prefix_filtering(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 296 | def test_collect_init_module_matching(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 726 | def test_filters_across_classes(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 865 | def test_auto_mark_directory_crashed_run(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 938 | def test_stripped_markers_restored_when_crash(self): | CODE |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 1037 | def test_stripped_markers_restored_when_crash(self): | CODE |
| LOW⚡ | scripts/update_lib/tests/test_auto_mark.py | 645 | def test_all_children_fail_marks_parent_with_message(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 85 | def test_parse_unexpected_success(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 103 | def test_parse_crashed_run_no_tests_result(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 119 | def test_parse_crashed_run_has_unexpected_success(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 131 | def test_parse_error_messages(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 161 | def test_parse_directory_test_multiple_submodules(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 198 | def test_parse_multiline_test_with_docstring(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 232 | def test_collect_failures_and_error_messages(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 330 | def test_extract_syntax_error_returns_empty(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 335 | def test_remove_comment_before(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 348 | def test_remove_inline_comment(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 359 | def test_remove_super_call_method(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 372 | def test_remove_async_super_call_override(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 392 | def test_remove_with_comment_after(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 407 | def test_no_removal_without_comment(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 421 | def test_strip_reason_formats(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 464 | def test_strip_with_comment_after(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 479 | def test_strip_super_call_override(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 519 | def test_no_strip_without_comment(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 532 | def test_mixed_with_and_without_reason(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 575 | def test_child_with_own_override_excluded(self): | STRING |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 597 | def test_apply_removes_unexpected_success(self): | STRING |
| 10280 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Lib/code.py | 276 | more = self.push(line) | CODE |
| HIGH | Lib/numbers.py | 53 | ## binary floats (i.e. Decimal('3.14') + 2.71828 is undefined). But, | COMMENT |
| HIGH | Lib/turtle.py | 2037 | self.undobuffer.push(["seq"]) | CODE |
| HIGH | Lib/turtle.py | 2494 | self.undobuffer.push(("pen", _p_buf)) | CODE |
| HIGH | Lib/turtle.py | 3194 | self.undobuffer.push(("stamp", stitem)) | CODE |
| HIGH | Lib/turtle.py | 3280 | self.undobuffer.push(undo_entry) | CODE |
| HIGH | Lib/turtle.py | 3384 | self.undobuffer.push(("rot", angle, self._degreesPerAU)) | CODE |
| HIGH | Lib/turtle.py | 3463 | self.undobuffer.push(("beginfill", self._fillitem)) | CODE |
| HIGH | Lib/turtle.py | 3482 | self.undobuffer.push(("dofill", self._fillitem)) | CODE |
| HIGH | Lib/turtle.py | 3515 | self.undobuffer.push(["seq"]) | CODE |
| HIGH | Lib/turtle.py | 3537 | self.undobuffer.push(("wri", item)) | CODE |
| HIGH | Lib/turtle.py | 3560 | self.undobuffer.push(["seq"]) | CODE |
| HIGH⚡ | Lib/locale.py | 1946 | print('Language: ', lang or '(undefined)') | CODE |
| HIGH⚡ | Lib/locale.py | 1947 | print('Encoding: ', enc or '(undefined)') | CODE |
| HIGH⚡ | Lib/locale.py | 1955 | print(' Language: ', lang or '(undefined)') | CODE |
| HIGH⚡ | Lib/locale.py | 1956 | print(' Encoding: ', enc or '(undefined)') | CODE |
| HIGH | Lib/locale.py | 1972 | print(' Language: ', lang or '(undefined)') | CODE |
| HIGH | Lib/locale.py | 1973 | print(' Encoding: ', enc or '(undefined)') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 80 | self.push('-ERR unrecognized POP3 command "%s".' %cmd) | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 86 | asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 90 | self.push(arg) | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 94 | self.push("-ERR no such user") | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 95 | self.push('+OK password required') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 99 | self.push("-ERR wrong password") | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 100 | self.push('+OK 10 messages') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 103 | self.push('+OK 10 100') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 107 | self.push('+OK %s %s' % (arg, arg)) | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 109 | self.push('+OK') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 110 | asynchat.async_chat.push(self, LIST_RESP) | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 115 | self.push('+OK %s bytes' %len(RETR_RESP)) | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 116 | asynchat.async_chat.push(self, RETR_RESP) | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 121 | self.push('+OK message marked for deletion.') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 124 | self.push('+OK done nothing.') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 127 | self.push('+OK done nothing.') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 130 | self.push('+OK done nothing.') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 133 | self.push('+OK closing.') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 143 | self.push('+OK Capability list follows') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 149 | self.push(' '.join(_ln)) | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 150 | self.push('.') | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 153 | self.push('+OK I know RFC6856' | CODE |
| HIGH⚡ | Lib/test/test_poplib.py | 161 | self.push('+OK Begin TLS negotiation') | CODE |
| HIGH | Lib/test/test_poplib.py | 59 | self.push('+OK dummy pop3 server ready. <timestamp>') | CODE |
| HIGH | Lib/test/test_poplib.py | 175 | self.push('-ERR Command not permitted when TLS active') | CODE |
| HIGH | Lib/test/test_poplib.py | 434 | self.push('+OK dummy pop3 server ready. <timestamp>') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 530 | f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 536 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 536 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 542 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 542 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 548 | f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 554 | f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 554 | f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 560 | f = gettext.c2py('n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3') | CODE |
| HIGH⚡ | Lib/test/test_gettext.py | 566 | f = gettext.c2py('n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5') | CODE |
| HIGH | Lib/test/test_gettext.py | 511 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2') | CODE |
| HIGH⚡ | Lib/test/test_contextlib.py | 756 | stack.push(_expect_ok) | CODE |
| HIGH⚡ | Lib/test/test_contextlib.py | 759 | stack.push(cm) | CODE |
| HIGH⚡ | Lib/test/test_contextlib.py | 761 | stack.push(_suppress_exc) | CODE |
| HIGH⚡ | Lib/test/test_contextlib.py | 764 | stack.push(cm) | CODE |
| HIGH⚡ | Lib/test/test_contextlib.py | 766 | stack.push(_expect_exc) | CODE |
| 287 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 140 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 147 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 154 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 160 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 166 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 173 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 179 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 186 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 192 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 199 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 209 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 215 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 223 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 229 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 241 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 247 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 254 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 263 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 273 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 281 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 310 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 316 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 322 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 328 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 351 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 357 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 363 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 369 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 395 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 401 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 409 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 415 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 421 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 1967 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 1973 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 1979 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 1985 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 1991 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 1997 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2003 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2009 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2015 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2021 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2045 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2051 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2057 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2063 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2069 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2075 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2081 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2087 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2093 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2099 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2122 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2128 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2134 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2140 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2146 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2152 | # ================================================ | COMMENT |
| MEDIUM⚡ | crates/unicode/unicode/latest/DerivedNumericValues.txt | 2158 | # ================================================ | COMMENT |
| 559 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/opcode_metadata/utils.py | 70 | CODE | |
| LOW | crates/wasm/Lib/_microdistlib.py | 13 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 429 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 736 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 848 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 914 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1243 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1409 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1517 | CODE | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 304 | CODE | |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 560 | CODE | |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 101 | CODE | |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 826 | CODE | |
| LOW | crates/vm/Lib/core_modules/copyreg.py | 112 | CODE | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 457 | CODE | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 537 | CODE | |
| LOW | scripts/dis_dump.py | 142 | CODE | |
| LOW | scripts/dis_dump.py | 188 | CODE | |
| LOW | scripts/dis_dump.py | 335 | CODE | |
| LOW | scripts/crawl_sourcecode.py | 29 | CODE | |
| LOW | scripts/codspeed-environment.py | 147 | CODE | |
| LOW | scripts/codspeed-environment.py | 217 | CODE | |
| LOW | scripts/whats_left.py | 417 | CODE | |
| LOW | scripts/whats_left.py | 492 | CODE | |
| LOW | scripts/check_redundant_patches.py | 38 | CODE | |
| LOW | scripts/compare_bytecode.py | 67 | CODE | |
| LOW | scripts/compare_bytecode.py | 295 | CODE | |
| LOW | scripts/compare_bytecode.py | 385 | CODE | |
| LOW | scripts/generate_checklist.py | 44 | CODE | |
| LOW | scripts/generate_checklist.py | 156 | CODE | |
| LOW | scripts/update_lib/deps.py | 1135 | CODE | |
| LOW | scripts/update_lib/deps.py | 1261 | CODE | |
| LOW | scripts/update_lib/deps.py | 1323 | CODE | |
| LOW | scripts/update_lib/deps.py | 1370 | CODE | |
| LOW | scripts/update_lib/deps.py | 1454 | CODE | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 87 | CODE | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 175 | CODE | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 291 | CODE | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 479 | CODE | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 548 | CODE | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 620 | CODE | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 842 | CODE | |
| LOW | scripts/update_lib/cmd_deps.py | 332 | CODE | |
| LOW | scripts/update_lib/patch_spec.py | 231 | CODE | |
| LOW | scripts/update_lib/patch_spec.py | 277 | CODE | |
| LOW | scripts/update_lib/patch_spec.py | 367 | CODE | |
| LOW | scripts/update_lib/cmd_todo.py | 450 | CODE | |
| LOW | scripts/update_lib/cmd_migrate.py | 80 | CODE | |
| LOW | scripts/update_lib/cmd_quick.py | 76 | CODE | |
| LOW | scripts/update_lib/cmd_quick.py | 325 | CODE | |
| LOW | Lib/shutil.py | 137 | CODE | |
| LOW | Lib/shutil.py | 229 | CODE | |
| LOW | Lib/shutil.py | 283 | CODE | |
| LOW | Lib/shutil.py | 409 | CODE | |
| LOW | Lib/shutil.py | 493 | CODE | |
| LOW | Lib/shutil.py | 545 | CODE | |
| LOW | Lib/shutil.py | 733 | CODE | |
| LOW | Lib/shutil.py | 810 | CODE | |
| LOW | Lib/shutil.py | 876 | CODE | |
| LOW | Lib/shutil.py | 996 | CODE | |
| 1277 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deny.toml | 1 | # This template contains all of the possible sections and their default values | COMMENT |
| LOW | deny.toml | 21 | # `target_family = "unix"` configuration, that only having windows targets in | COMMENT |
| LOW | deny.toml | 41 | #exclude = [] | COMMENT |
| LOW | deny.toml | 61 | COMMENT | |
| LOW | deny.toml | 101 | "BSD-3-Clause", | COMMENT |
| LOW | deny.toml | 121 | # The package spec the clarification applies to | COMMENT |
| LOW | deny.toml | 141 | # One or more private registries that you might publish crates to, if a crate | COMMENT |
| LOW | deny.toml | 161 | highlight = "all" | COMMENT |
| LOW | deny.toml | 181 | #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] }, | COMMENT |
| LOW | deny.toml | 221 | ] | COMMENT |
| LOW | pdc.sh | 1 | COMMENT | |
| LOW | crates/sre_engine/tests/tests.rs | 141 | #[test] | COMMENT |
| LOW | crates/sre_engine/tests/tests.rs | 241 | // END GENERATED | COMMENT |
| LOW | crates/sre_engine/benches/benches.rs | 21 | let state = State::default(); | COMMENT |
| LOW | crates/sre_engine/benches/benches.rs | 41 | // START GENERATED by generate_tests.py | COMMENT |
| LOW | crates/sre_engine/benches/benches.rs | 61 | // START GENERATED by generate_tests.py | COMMENT |
| LOW | crates/sre_engine/src/string.rs | 21 | } | COMMENT |
| LOW | crates/sre_engine/src/string.rs | 41 | /// So a drive over a variable-width encoding pays for the mapping: `count` | COMMENT |
| LOW | crates/sre_engine/src/string.rs | 301 | COMMENT | |
| LOW | crates/compiler-core/src/marshal.rs | 601 | /// instruction storage. | COMMENT |
| LOW | crates/compiler-core/src/bytecode.rs | 541 | /// `align(2)` so that the whole unit can be read with one aligned | COMMENT |
| LOW | crates/compiler-core/src/bytecode.rs | 781 | /// Atomically read the opcode at `index` with Acquire ordering. | COMMENT |
| LOW | crates/compiler-core/src/bytecode.rs | 821 | COMMENT | |
| LOW | crates/compiler-core/src/bytecode.rs | 881 | } | COMMENT |
| LOW | crates/compiler-core/src/bytecode.rs | 901 | /// # Safety | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 121 | } | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 141 | /// Each variant is assigned a value using one of two forms: | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 161 | /// } | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 301 | }; | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 321 | /// Converts by calling `str(<value>)`. | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 561 | Self::NotEqual => "!=", | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 581 | /// - [_PyEval_BinaryOps](https://github.com/python/cpython/blob/8183fa5e3f78ca6ab862de7fb8b14f3d929421e0/Python/cev | COMMENT |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 641 | impl BinaryOperator { | COMMENT |
| LOW | crates/compiler-core/src/bytecode/instruction.rs | 21 | #[repr($typ)] | COMMENT |
| LOW | crates/compiler-core/src/bytecode/instruction.rs | 1041 | _ => None, | COMMENT |
| LOW | crates/compiler-core/src/bytecode/instruction.rs | 1141 | _ => None, | COMMENT |
| LOW | crates/literal/src/float.rs | 61 | /// internal precision limit. User-supplied precision can legally reach far | COMMENT |
| LOW | crates/host_env/src/crt_fd.rs | 161 | /// | COMMENT |
| LOW | crates/host_env/src/crt_fd_unsupported.rs | 101 | /// | COMMENT |
| LOW | crates/host_env/src/time.rs | 21 | /// Not available under MSVC (which exposes these only via the | COMMENT |
| LOW | crates/host_env/src/ctypes.rs | 1861 | /// All valid ctypes simple type codes on this platform. | COMMENT |
| LOW | crates/host_env/src/socket.rs | 501 | /// same bits as signed C longs (`INADDR_*_GROUP` below). | COMMENT |
| LOW | crates/host_env/src/socket.rs | 521 | COMMENT | |
| LOW | crates/host_env/src/socket.rs | 681 | pub const IPV6_RTHDR_TYPE_0: i32 = 0; | COMMENT |
| LOW | crates/host_env/src/ssl/oid.rs | 1 | // spell-checker: disable | COMMENT |
| LOW | crates/host_env/src/ssl/verify.rs | 741 | } | COMMENT |
| LOW | crates/host_env/src/ssl/verify.rs | 881 | COMMENT | |
| LOW | crates/host_env/src/ssl/verify.rs | 921 | /// | COMMENT |
| LOW | crates/host_env/src/ssl/verify.rs | 1161 | /// to add partial chain support when the flag is set. | COMMENT |
| LOW | crates/host_env/src/ssl/providers.rs | 1 | //! Utilities for user-settable cryptography providers. | COMMENT |
| LOW | crates/host_env/src/ssl/cipher.rs | 1 | //! OpenSSL cipher strings, as `man openssl-ciphers` defines them. | COMMENT |
| LOW | crates/unicode/unicode/latest/DerivedNumericValues.txt | 1 | # DerivedNumericValues-17.0.0.txt | COMMENT |
| LOW | crates/unicode/unicode/latest/DerivedNumericValues.txt | 21 | # This field is empty; it used to be a copy of the numeric type. | COMMENT |
| LOW | …es/unicode/unicode/latest/NormalizationCorrections.txt | 1 | # NormalizationCorrections-17.0.0.txt | COMMENT |
| LOW | …es/unicode/unicode/latest/NormalizationCorrections.txt | 21 | # Whenever such an error may be found, and if it meets the | COMMENT |
| LOW | crates/unicode/unicode/latest/NameAliases.txt | 1 | # NameAliases-17.0.0.txt | COMMENT |
| LOW | crates/unicode/unicode/latest/NameAliases.txt | 21 | # 1. correction | COMMENT |
| LOW | crates/unicode/unicode/latest/NameAliases.txt | 41 | # control codes (which for historical reasons have no Unicode character name) | COMMENT |
| LOW | crates/unicode/unicode/latest/NamedSequences.txt | 1 | # NamedSequences-17.0.0.txt | COMMENT |
| LOW | crates/unicode/unicode/latest/NamedSequences.txt | 21 | # comma delimitation and angle brackets. Thus, a Unicode | COMMENT |
| 826 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/codegen/src/symboltable.rs | 3720 | except Exception: | CODE |
| MEDIUM | crates/codegen/src/symboltable.rs | 3717 | def f(x): | CODE |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1529 | except Exception: | CODE |
| LOW | crates/stdlib/src/_opcode.rs | 323 | except Exception as ex: | CODE |
| LOW | wasm/tests/conftest.py | 106 | except Exception as e: | STRING |
| MEDIUM | wasm/tests/conftest.py | 107 | print(f"Error waiting for page to load: {e}") | STRING |
| LOW | scripts/dis_dump.py | 103 | except Exception: | CODE |
| LOW⚡ | scripts/dis_dump.py | 183 | except Exception: | CODE |
| LOW⚡ | scripts/dis_dump.py | 192 | except Exception as e: | CODE |
| LOW | scripts/dis_dump.py | 331 | except Exception as e: | CODE |
| MEDIUM | scripts/dis_dump.py | 89 | def _unescape(m): | CODE |
| LOW | scripts/whats_left.py | 176 | except Exception as e: | CODE |
| LOW | scripts/whats_left.py | 338 | except Exception as e: | CODE |
| LOW | scripts/find_eq.py | 82 | except Exception as e: | CODE |
| LOW | scripts/compare_bytecode.py | 120 | except Exception: | CODE |
| MEDIUM⚡ | scripts/compare_bytecode.py | 441 | print("Error: %s" % exc, file=sys.stderr) | CODE |
| MEDIUM⚡ | scripts/compare_bytecode.py | 444 | print("Error: RustPython binary not found.", file=sys.stderr) | CODE |
| MEDIUM⚡ | scripts/compare_bytecode.py | 449 | print("Error: disassembler helper not found: %s" % DIS_DUMP, file=sys.stderr) | CODE |
| MEDIUM | scripts/compare_bytecode.py | 460 | print("Error: --sample must be >= 1", file=sys.stderr) | CODE |
| MEDIUM | scripts/compare_bytecode.py | 471 | print("Error: no Python files matched", file=sys.stderr) | CODE |
| MEDIUM | scripts/update_lib/deps.py | 61 | def visit_ImportFrom(self, node): | CODE |
| LOW | scripts/update_lib/deps.py | 233 | except Exception: | CODE |
| LOW | scripts/update_lib/deps.py | 1154 | except Exception: | CODE |
| LOW | scripts/update_lib/deps.py | 1404 | except Exception: | CODE |
| LOW | scripts/update_lib/deps.py | 1444 | except Exception: | CODE |
| LOW | scripts/update_lib/deps.py | 1480 | except Exception: | CODE |
| LOW | scripts/update_lib/deps.py | 1520 | except Exception: | CODE |
| MEDIUM | scripts/update_lib/cmd_auto_mark.py | 1039 | print(f"Error: {e}", file=sys.stderr) | CODE |
| LOW | scripts/update_lib/cmd_deps.py | 457 | except Exception as e: | CODE |
| MEDIUM | scripts/update_lib/cmd_deps.py | 458 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM | scripts/update_lib/cmd_copy_lib.py | 103 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM | scripts/update_lib/cmd_copy_lib.py | 106 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM | scripts/update_lib/cmd_patches.py | 101 | print(f"Error: {e}", file=sys.stderr) | CODE |
| LOW | scripts/update_lib/cmd_todo.py | 697 | except Exception as e: | CODE |
| MEDIUM | scripts/update_lib/cmd_todo.py | 698 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM | scripts/update_lib/cmd_migrate.py | 141 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM | scripts/update_lib/cmd_migrate.py | 144 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM⚡ | scripts/update_lib/cmd_quick.py | 462 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM⚡ | scripts/update_lib/cmd_quick.py | 465 | print(f"Error: {e}", file=sys.stderr) | CODE |
| LOW⚡ | scripts/update_lib/cmd_quick.py | 467 | except Exception as e: | CODE |
| MEDIUM⚡ | scripts/update_lib/cmd_quick.py | 472 | print(f"Error: {e}", file=sys.stderr) | CODE |
| LOW | Lib/shutil.py | 105 | except Exception as err: | CODE |
| LOW | Lib/shutil.py | 147 | except Exception as err: | CODE |
| LOW | Lib/shutil.py | 196 | except Exception as err: | CODE |
| LOW | Lib/pkgutil.py | 80 | except Exception: | CODE |
| LOW | Lib/rlcompleter.py | 159 | except Exception: | CODE |
| LOW | Lib/zipimport.py | 621 | except Exception: | CODE |
| LOW | Lib/zipimport.py | 669 | except Exception: | CODE |
| MEDIUM | Lib/zipimport.py | 346 | def _read_directory(archive): | CODE |
| LOW | Lib/wave.py | 405 | except Exception: | CODE |
| LOW | Lib/weakref.py | 567 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1070 | except Exception as e: | CODE |
| LOW | Lib/traceback.py | 1303 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1617 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1625 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1648 | except Exception: | CODE |
| MEDIUM | Lib/code.py | 155 | print('Error in sys.excepthook:', file=sys.stderr) | CODE |
| MEDIUM | Lib/pydoc.py | 636 | def repr_instance(self, x, level): | CODE |
| LOW | Lib/pydoc.py | 993 | except Exception: | CODE |
| LOW | Lib/pydoc.py | 1039 | except Exception: | CODE |
| 620 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 2 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 4 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 7 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 10 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 11 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 13 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 15 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 15 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 15 | CODE | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 17 | CODE | |
| LOW | tools/opcode_metadata/opcodes.py | 1 | CODE | |
| LOW | tools/opcode_metadata/cpython.py | 17 | CODE | |
| LOW | tools/opcode_metadata/cpython.py | 17 | CODE | |
| LOW | tools/opcode_metadata/cpython.py | 17 | CODE | |
| LOW | tools/opcode_metadata/cpython.py | 18 | CODE | |
| LOW | tools/opcode_metadata/utils.py | 4 | CODE | |
| LOW | tools/opcode_metadata/generate_py_opcode_metadata.py | 12 | CODE | |
| LOW | tools/opcode_metadata/generate_py_opcode_metadata.py | 15 | CODE | |
| LOW | crates/unicode/tests/generate_reference.py | 15 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 1 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 1 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 1 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 1 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 1 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 1 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 10 | CODE | |
| LOW | crates/wasm/Lib/browser.py | 10 | CODE | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 16 | CODE | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 1125 | CODE | |
| LOW | crates/doc/generate.py | 2 | CODE | |
| LOW | crates/doc/generate.py | 18 | CODE | |
| LOW | wasm/demo/snippets/import_pypi.py | 4 | CODE | |
| LOW | examples/call_between_rust_and_python.py | 1 | CODE | |
| LOW | scripts/port_cjk_mappings.py | 9 | CODE | |
| LOW | scripts/make_ssl_data_rs.py | 20 | CODE | |
| LOW | scripts/update_lib/deps.py | 17 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/__init__.py | 5 | CODE | |
| LOW | scripts/update_lib/patch_spec.py | 9 | CODE | |
| LOW | scripts/update_lib/file_utils.py | 13 | CODE | |
| LOW | scripts/pyperformance/pr_diff.py | 23 | CODE | |
| LOW | scripts/pyperformance/run_all.py | 50 | CODE | |
| LOW | scripts/pyperformance/compare.py | 20 | CODE | |
| LOW | Lib/_pyio.py | 19 | CODE | |
| LOW | Lib/_pyio.py | 19 | CODE | |
| LOW | Lib/_pyio.py | 19 | CODE | |
| LOW | Lib/lzma.py | 28 | CODE | |
| LOW | Lib/lzma.py | 29 | CODE | |
| 620 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/opcode_metadata/generate_py_opcode_metadata.py | 45 | # This file is generated by {script_path} | COMMENT |
| MEDIUM | crates/vm/Lib/python_builtins/_frozen_importlib.py | 233 | # Create an RLock for protecting the import process for the | COMMENT |
| MEDIUM | crates/vm/Lib/python_builtins/_frozen_importlib.py | 695 | # This function is meant for use in _setup(). | COMMENT |
| MEDIUM | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1153 | # This class is actually exposed publicly in a namespace package's __loader__ | COMMENT |
| MEDIUM | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1510 | # This function is used by PyImport_ExecCodeModuleObject(). | COMMENT |
| MEDIUM | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 762 | """This method is deprecated.""" | STRING |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 154 | # Create the dependency file | STRING |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 264 | # Create a module that imports another module | COMMENT |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 269 | # Create the imported modules | STRING |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 283 | # Create a module that imports itself (circular) | COMMENT |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 301 | # Create a module that imports nonexistent module | COMMENT |
| MEDIUM | scripts/update_lib/tests/test_quick.py | 275 | # Create a fake test file with Lib/test structure | COMMENT |
| MEDIUM | Lib/_pyio.py | 274 | # Define a default pure-Python implementation for open_code() | STRING |
| MEDIUM | Lib/ipaddress.py | 1485 | """This class represents and manipulates 32-bit IPv4 network + addresses.. | STRING |
| MEDIUM | Lib/ipaddress.py | 2279 | """This class represents and manipulates 128-bit IPv6 networks. | STRING |
| MEDIUM | Lib/webbrowser.py | 702 | # Create an NSURL object representing the URL | STRING |
| MEDIUM | Lib/_compat_pickle.py | 1 | # This module is used to map the old Python 2 names to the new names used in | COMMENT |
| MEDIUM | Lib/bdb.py | 894 | # The following methods can be called by clients to use | COMMENT |
| MEDIUM | Lib/bdb.py | 945 | # This method is more useful to debug a single function call. | COMMENT |
| MEDIUM | Lib/zipapp.py | 134 | # Create the list of files to add to the archive now, in case | COMMENT |
| MEDIUM | Lib/base64.py | 439 | # The following code is originally taken (with permission) from Mercurial | STRING |
| MEDIUM | Lib/gettext.py | 13 | # This module represents the integration of work, contributions, feedback, and | COMMENT |
| MEDIUM | Lib/modulefinder.py | 649 | # Create the module finder and turn its crank | COMMENT |
| MEDIUM | Lib/subprocess.py | 1998 | # This method is called (indirectly) by __del__, so it cannot | COMMENT |
| MEDIUM | Lib/subprocess.py | 2206 | # This method is called from the _communicate_with_*() methods | COMMENT |
| MEDIUM | Lib/profile.py | 429 | # This method is more useful to profile a single function call. | COMMENT |
| MEDIUM | Lib/code.py | 162 | # This method is being overwritten in | COMMENT |
| MEDIUM | Lib/pydoc.py | 802 | # Create a link for methods like 'self.method(...)' | COMMENT |
| MEDIUM⚡ | Lib/types.py | 319 | # The following code is primarily to support functions that | COMMENT |
| MEDIUM | Lib/pdb.py | 543 | """This method is called when there is the remote possibility | STRING |
| MEDIUM | Lib/pdb.py | 552 | """This function is called when we stop or break at this line.""" | STRING |
| MEDIUM | Lib/pdb.py | 585 | """This function is called when a return trap is set here.""" | STRING |
| MEDIUM | Lib/pdb.py | 594 | """This function is called if an exception occurs, | STRING |
| MEDIUM | Lib/threading.py | 330 | # This method is called only if _lock doesn't have _is_owned(). | COMMENT |
| MEDIUM | Lib/threading.py | 1309 | # Create a local namespace to ensure that variables remain alive | COMMENT |
| MEDIUM | Lib/threading.py | 1553 | # Create the main thread object, | COMMENT |
| MEDIUM | Lib/threading.py | 147 | """This class implements reentrant lock objects. | STRING |
| MEDIUM | Lib/threading.py | 460 | """This class implements semaphore objects. | STRING |
| MEDIUM | Lib/platform.py | 9 | # This module is maintained by Marc-Andre Lemburg <mal@egenix.com>. | COMMENT |
| MEDIUM | Lib/pstats.py | 74 | """This class is used for creating reports from data generated by the | STRING |
| MEDIUM | Lib/pstats.py | 321 | # The following functions support actual printing of reports | COMMENT |
| MEDIUM | Lib/pstats.py | 520 | """This class provides a generic function for comparing any two tuples. | STRING |
| MEDIUM | Lib/pstats.py | 563 | # The following functions combine statistics for pairs functions. | COMMENT |
| MEDIUM | Lib/pstats.py | 600 | # The following functions support printing of reports | COMMENT |
| MEDIUM | Lib/inspect.py | 29 | # This module is in the public domain. No warranties. | COMMENT |
| MEDIUM | Lib/_opcode_metadata.py | 1 | # This file is generated by tools/opcode_metadata/generate_py_opcode_metadata.py | COMMENT |
| MEDIUM | Lib/annotationlib.py | 167 | # Create a new locals dict if necessary, | COMMENT |
| MEDIUM | Lib/fractions.py | 183 | """This class implements rational numbers. | STRING |
| MEDIUM | Lib/_ast_unparse.py | 1 | # This module contains ``ast.unparse()``, defined here | COMMENT |
| MEDIUM | Lib/mailbox.py | 615 | # This method is for backward compatibility only. | COMMENT |
| MEDIUM | Lib/ast.py | 592 | # The following code is for backward compatibility. | COMMENT |
| MEDIUM | Lib/doctest.py | 154 | # Create a new flag unless `name` is already known. | STRING |
| MEDIUM | Lib/doctest.py | 682 | # Create an Example, and add it to the list. | STRING |
| MEDIUM | Lib/doctest.py | 1279 | # Create a fake output target for capturing doctest output. | STRING |
| MEDIUM | Lib/_pylong.py | 147 | # This function implements a divide-and-conquer algorithm that is | COMMENT |
| MEDIUM | Lib/_pylong.py | 231 | # This function implements a divide-and-conquer algorithm making use | COMMENT |
| MEDIUM | Lib/dataclasses.py | 388 | # This function is used instead of exposing Field creation directly, | COMMENT |
| MEDIUM | Lib/dataclasses.py | 537 | # Create an __annotate__ function for a dataclass | COMMENT |
| MEDIUM | Lib/dataclasses.py | 1190 | # Create a comparison function. If the fields in the object are | COMMENT |
| MEDIUM | Lib/dataclasses.py | 1218 | # Create a class doc-string. | COMMENT |
| 189 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | crates/vm/src/vm/mod.rs | 1314 | let path_contains_env = self.state.config.paths.module_search_paths.iter().any(|s| { | CODE |
| CRITICAL | crates/vm/src/vm/mod.rs | 1466 | let encoding = self.state.config.settings.stdio_encoding.as_deref(); | CODE |
| CRITICAL | crates/vm/src/vm/mod.rs | 1477 | Some(if self.state.config.settings.stdio_encoding.is_some() { | CODE |
| CRITICAL | crates/vm/src/vm/mod.rs | 1559 | || !self.state.config.paths.module_search_paths.is_empty(); | CODE |
| CRITICAL | crates/vm/src/vm/mod.rs | 3041 | optimize: self.state.config.settings.optimize.min(2), | CODE |
| CRITICAL | crates/vm/src/vm/compile.rs | 417 | -1 => self.state.config.settings.optimize.min(2), | CODE |
| CRITICAL | crates/vm/src/stdlib/builtins.rs | 209 | -1 => vm.state.config.settings.optimize.min(2), | CODE |
| CRITICAL | crates/vm/src/stdlib/_imp.rs | 216 | .new_str(vm.state.config.settings.check_hash_pycs_mode.to_string()) | CODE |
| CRITICAL | crates/vm/src/stdlib/_io.rs | 5850 | && let Some(stdlib_dir) = vm.state.config.paths.stdlib_dir.as_deref() | CODE |
| CRITICAL | crates/vm/src/stdlib/marshal.rs | 606 | Ok(self.vm.ctx.exceptions.stop_iteration.to_owned().into()) | CODE |
| CRITICAL⚡ | crates/vm/src/stdlib/sys.rs | 271 | vm.state.config.paths.prefix.clone() | CODE |
| CRITICAL⚡ | crates/vm/src/stdlib/sys.rs | 275 | vm.state.config.paths.base_prefix.clone() | CODE |
| CRITICAL⚡ | crates/vm/src/stdlib/sys.rs | 279 | vm.state.config.paths.exec_prefix.clone() | CODE |
| CRITICAL⚡ | crates/vm/src/stdlib/sys.rs | 283 | vm.state.config.paths.base_exec_prefix.clone() | CODE |
| CRITICAL⚡ | crates/vm/src/stdlib/sys.rs | 291 | vm.state.config.paths.stdlib_dir.clone().to_pyobject(vm) | CODE |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 644 | vm.state.config.paths.base_executable.clone() | CODE |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 654 | vm.state.config.paths.executable.clone() | CODE |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 1273 | vm.state.config.settings.cpu_count.map_or(-1, |n| n.get()) | CODE |
| CRITICAL | crates/jit/src/lib.rs | 65 | self.ctx.func.signature.params.push(AbiParam::new(arg)); | CODE |
| CRITICAL | crates/jit/src/lib.rs | 69 | self.ctx.func.signature.returns.push(AbiParam::new(ret)); | CODE |
| CRITICAL | crates/stdlib/src/syslog.rs | 53 | if let Some(argv) = vm.state.config.settings.argv.first() | CODE |
| CRITICAL | Lib/test/test_urllib2net.py | 383 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) | CODE |
| CRITICAL | Lib/test/test_urllib2net.py | 394 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) | CODE |
| CRITICAL | Lib/test/test_urllib2net.py | 406 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) | CODE |
| CRITICAL | Lib/test/test_urllib2net.py | 413 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) | CODE |
| CRITICAL⚡ | Lib/test/test_asyncio/test_proactor_events.py | 816 | self.proactor.recv.return_value.add_done_callback.assert_called_with( | CODE |
| CRITICAL⚡ | Lib/test/test_asyncio/test_proactor_events.py | 825 | self.proactor.recv.return_value.add_done_callback.assert_called_with( | CODE |
| CRITICAL⚡ | Lib/xml/dom/expatbuilder.py | 316 | self.document.doctype.entities._seq.append(node) | CODE |
| CRITICAL⚡ | Lib/xml/dom/expatbuilder.py | 322 | self.document.doctype.notations._seq.append(node) | CODE |
| CRITICAL⚡ | Lib/idlelib/idle_test/test_textview.py | 211 | self.assertEqual(self.view.viewframe.textframe.text.get('1.0', '1.end'), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | crates/vm/Lib/python_builtins/_frozen_importlib.py | 0 | core implementation of path-based import. this module is not meant to be directly imported! it has been designed such th | STRING |
| HIGH | Lib/importlib/_bootstrap.py | 0 | core implementation of path-based import. this module is not meant to be directly imported! it has been designed such th | STRING |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 0 | core implementation of path-based import. this module is not meant to be directly imported! it has been designed such th | STRING |
| HIGH | Lib/importlib/_bootstrap_external.py | 0 | core implementation of path-based import. this module is not meant to be directly imported! it has been designed such th | STRING |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 0 | find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi | STRING |
| HIGH | Lib/importlib/_bootstrap_external.py | 0 | find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi | STRING |
| HIGH | Lib/importlib/metadata/__init__.py | 0 | find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi | STRING |
| HIGH | crates/vm/Lib/core_modules/encodings_latin_1.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/latin_1.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | crates/vm/Lib/core_modules/encodings_utf_8.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/utf_8.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | crates/vm/Lib/core_modules/encodings_ascii.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/ascii.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/raw_unicode_escape.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/utf_16_be.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/unicode_escape.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/utf_16_le.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | Lib/encodings/utf_16.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass # {comment} @unittest.expectedfailure def tes | STRING |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass # {comment} @unittest.expectedfailure def tes | STRING |
| HIGH | scripts/update_lib/tests/test_migrate.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass # {comment} @unittest.expectedfailure def tes | STRING |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass def test_two(self): pass | STRING |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass def test_two(self): pass | STRING |
| HIGH | scripts/update_lib/tests/test_migrate.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass def test_two(self): pass | STRING |
| HIGH | Lib/lzma.py | 0 | return the file descriptor for the underlying file. | STRING |
| HIGH | Lib/bz2.py | 0 | return the file descriptor for the underlying file. | STRING |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | return the file descriptor for the underlying file. | STRING |
| HIGH | Lib/lzma.py | 0 | return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e | STRING |
| HIGH | Lib/bz2.py | 0 | return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e | STRING |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e | STRING |
| HIGH | Lib/lzma.py | 0 | read up to size uncompressed bytes from the file. if size is negative or omitted, read until eof is reached. returns b'' | STRING |
| HIGH | Lib/bz2.py | 0 | read up to size uncompressed bytes from the file. if size is negative or omitted, read until eof is reached. returns b'' | STRING |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | read up to size uncompressed bytes from the file. if size is negative or omitted, read until eof is reached. returns b'' | STRING |
| HIGH | Lib/lzma.py | 0 | read up to size uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. reads up to | STRING |
| HIGH | Lib/bz2.py | 0 | read up to size uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. reads up to | STRING |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | read up to size uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. reads up to | STRING |
| HIGH | Lib/lzma.py | 0 | read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati | STRING |
| HIGH | Lib/bz2.py | 0 | read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati | STRING |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati | STRING |
| HIGH | Lib/lzma.py | 0 | change the file position. the new position is specified by offset, relative to the position indicated by whence. possibl | STRING |
| HIGH | Lib/bz2.py | 0 | change the file position. the new position is specified by offset, relative to the position indicated by whence. possibl | STRING |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | change the file position. the new position is specified by offset, relative to the position indicated by whence. possibl | STRING |
| HIGH | Lib/test/test_threading.py | 0 | decorator to skip a test if subinterpreters are not supported. | STRING |
| HIGH | Lib/test/test_sys.py | 0 | decorator to skip a test if subinterpreters are not supported. | STRING |
| HIGH | Lib/test/test_import/__init__.py | 0 | decorator to skip a test if subinterpreters are not supported. | STRING |
| HIGH | Lib/test/test_repl.py | 0 | run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen | STRING |
| HIGH | Lib/test/test_inspect/test_inspect.py | 0 | run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen | STRING |
| HIGH | Lib/test/support/script_helper.py | 0 | run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen | STRING |
| HIGH | Lib/test/test_peg_generator/test_pegen.py | 0 | start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd' | STRING |
| HIGH | Lib/test/test_peg_generator/test_c_parser.py | 0 | start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd' | STRING |
| HIGH | Lib/test/test_peg_generator/test_first_sets.py | 0 | start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd' | STRING |
| HIGH | Lib/test/test_peg_generator/test_pegen.py | 0 | start: target '=' target: maybe '+' | name maybe: maybe '-' | target | STRING |
| HIGH | Lib/test/test_peg_generator/test_c_parser.py | 0 | start: target '=' target: maybe '+' | name maybe: maybe '-' | target | STRING |
| HIGH | Lib/test/test_peg_generator/test_first_sets.py | 0 | start: target '=' target: maybe '+' | name maybe: maybe '-' | target | STRING |
| HIGH | Lib/test/test_importlib/_path.py | 0 | build a set of files/directories, as described by the spec. each key represents a pathname, and the value represents the | STRING |
| HIGH | Lib/test/test_importlib/resources/_path.py | 0 | build a set of files/directories, as described by the spec. each key represents a pathname, and the value represents the | STRING |
| HIGH | Lib/test/test_importlib/metadata/_path.py | 0 | build a set of files/directories, as described by the spec. each key represents a pathname, and the value represents the | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/wasm/Lib/browser.py | 13 | __all__ = [ | CODE |
| LOW | crates/vm/Lib/python_builtins/_thread.py | 17 | __all__ = [ | CODE |
| LOW | crates/vm/Lib/core_modules/copyreg.py | 7 | __all__ = ["pickle", "constructor", | CODE |
| LOW | crates/vm/Lib/core_modules/codecs.py | 20 | __all__ = ["register", "lookup", "open", "EncodedFile", "BOM", "BOM_BE", | CODE |
| LOW | wasm/tests/test_inject_module.py | 8 | __all__ = ['get_thing'] | STRING |
| LOW | examples/package_embed.py | 4 | __all__ = ["context"] | CODE |
| LOW | scripts/update_lib/__init__.py | 22 | __all__ = [ | CODE |
| LOW | Lib/shutil.py | 65 | __all__ = ["copyfileobj", "copyfile", "copymode", "copystat", "copy", "copy2", | CODE |
| LOW | Lib/tempfile.py | 26 | __all__ = [ | CODE |
| LOW | Lib/queue.py | 13 | __all__ = [ | CODE |
| LOW | Lib/pkgutil.py | 12 | __all__ = [ | CODE |
| LOW | Lib/_dummy_thread.py | 17 | __all__ = [ | CODE |
| LOW | Lib/lzma.py | 11 | __all__ = [ | CODE |
| LOW | Lib/copyreg.py | 7 | __all__ = ["pickle", "constructor", | CODE |
| LOW | Lib/rlcompleter.py | 41 | __all__ = ["Completer"] | CODE |
| LOW | Lib/gzip.py | 18 | __all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"] | CODE |
| LOW | Lib/trace.py | 48 | __all__ = ['Trace', 'CoverageResults'] | CODE |
| LOW | Lib/webbrowser.py | 11 | __all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"] | CODE |
| LOW | Lib/dis.py | 24 | __all__ = ["code_info", "dis", "disassemble", "distb", "disco", | CODE |
| LOW | Lib/bdb.py | 11 | __all__ = ["BdbQuit", "Bdb", "Breakpoint"] | CODE |
| LOW | Lib/zipapp.py | 9 | __all__ = ['ZipAppError', 'create_archive', 'get_interpreter'] | CODE |
| LOW | Lib/cmd.py | 47 | __all__ = ["Cmd"] | CODE |
| LOW | Lib/tty.py | 7 | __all__ = ["cfmakeraw", "cfmakecbreak", "setraw", "setcbreak"] | CODE |
| LOW | Lib/tabnanny.py | 25 | __all__ = ["check", "NannyNag", "process_tokens"] | CODE |
| LOW | Lib/zipimport.py | 24 | __all__ = ['ZipImportError', 'zipimporter'] | CODE |
| LOW | Lib/token.py | 4 | __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF', | CODE |
| LOW | Lib/textwrap.py | 10 | __all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten'] | CODE |
| LOW | Lib/base64.py | 11 | __all__ = [ | CODE |
| LOW | Lib/bz2.py | 7 | __all__ = ["BZ2File", "BZ2Compressor", "BZ2Decompressor", | CODE |
| LOW | Lib/_threading_local.py | 12 | __all__ = ["local"] | CODE |
| LOW | Lib/pyclbr.py | 48 | __all__ = ["readmodule", "readmodule_ex", "Class", "Function"] | CODE |
| LOW | Lib/gettext.py | 51 | __all__ = ['NullTranslations', 'GNUTranslations', 'Catalog', | CODE |
| LOW | Lib/wave.py | 80 | __all__ = ["open", "Error", "Wave_read", "Wave_write"] | CODE |
| LOW | Lib/weakref.py | 30 | __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs", | CODE |
| LOW | Lib/opcode.py | 8 | __all__ = ["cmp_op", "stack_effect", "hascompare", "opname", "opmap", | CODE |
| LOW | Lib/netrc.py | 7 | __all__ = ["netrc", "NetrcParseError"] | CODE |
| LOW | Lib/heapq.py | 129 | __all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'heappushpop', | STRING |
| LOW | Lib/functools.py | 12 | __all__ = ['update_wrapper', 'wraps', 'WRAPPER_ASSIGNMENTS', 'WRAPPER_UPDATES', | CODE |
| LOW | Lib/codeop.py | 41 | __all__ = ["compile_command", "Compile", "CommandCompiler"] | STRING |
| LOW | Lib/fnmatch.py | 19 | __all__ = ["filter", "filterfalse", "fnmatch", "fnmatchcase", "translate"] | CODE |
| LOW | Lib/traceback.py | 17 | __all__ = ['extract_stack', 'extract_tb', 'format_exception', | CODE |
| LOW | Lib/warnings.py | 3 | __all__ = [ | CODE |
| LOW | Lib/subprocess.py | 63 | __all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput", | STRING |
| LOW | Lib/profile.py | 32 | __all__ = ["run", "runctx", "Profile"] | CODE |
| LOW | Lib/filecmp.py | 18 | __all__ = ['clear_cache', 'cmp', 'dircmp', 'cmpfiles', 'DEFAULT_IGNORES'] | CODE |
| LOW | Lib/codecs.py | 20 | __all__ = ["register", "lookup", "open", "EncodedFile", "BOM", "BOM_BE", | CODE |
| LOW | Lib/_weakrefset.py | 8 | __all__ = ['WeakSet'] | CODE |
| LOW | Lib/io.py | 44 | __all__ = ["BlockingIOError", "open", "open_code", "IOBase", "RawIOBase", | CODE |
| LOW | Lib/code.py | 13 | __all__ = ["InteractiveInterpreter", "InteractiveConsole", "interact", | CODE |
| LOW | Lib/operator.py | 13 | __all__ = ['abs', 'add', 'and_', 'attrgetter', 'call', 'concat', 'contains', 'countOf', | CODE |
| LOW | Lib/fileinput.py | 72 | __all__ = ["input", "close", "nextfile", "filename", "lineno", "filelineno", | CODE |
| LOW | Lib/os.py | 36 | __all__ = ["altsep", "curdir", "pardir", "sep", "pathsep", "linesep", | STRING |
| LOW | Lib/difflib.py | 29 | __all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher', | CODE |
| LOW | Lib/pydoc.py | 39 | __all__ = ['help'] | CODE |
| LOW | Lib/socketserver.py | 134 | __all__ = ["BaseServer", "TCPServer", "UDPServer", | CODE |
| LOW | Lib/copy.py | 60 | __all__ = ["Error", "copy", "deepcopy", "replace"] | CODE |
| LOW | Lib/genericpath.py | 9 | __all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime', | CODE |
| LOW | Lib/linecache.py | 8 | __all__ = ["getline", "clearcache", "checkcache", "lazycache"] | CODE |
| LOW | Lib/types.py | 345 | __all__ = [n for n in globals() if not n.startswith('_')] # for pydoc | CODE |
| LOW | Lib/mimetypes.py | 36 | __all__ = [ | CODE |
| 191 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdc.sh | 10 | # If you want to customize it or adapt the checks, just add or remove it from/ to the ACTIONS | COMMENT |
| MEDIUM | crates/codegen/src/ir.rs | 1423 | /// Definitely reachable outside exception-only paths (b_warm) | COMMENT |
| LOW | Lib/shutil.py | 1629 | # what file suffixes are executable, so just pass on cmd as-is. | COMMENT |
| MEDIUM | Lib/trace.py | 25 | # Bioreason or Mojam Media be used in advertising or publicity pertaining to | COMMENT |
| LOW | Lib/difflib.py | 1413 | # Handle case where no user markup is to be added, just return line of | STRING |
| LOW | Lib/difflib.py | 1780 | # if blank line or context separator, just add it to the output list | COMMENT |
| LOW | Lib/difflib.py | 1785 | # if line text doesn't need wrapping, just add it to the output list | COMMENT |
| LOW | Lib/ftplib.py | 405 | # then we'll just use anonymous@ | COMMENT |
| LOW | Lib/optparse.py | 565 | # Check all the attributes we just set. There are lots of | COMMENT |
| LOW | Lib/pdb.py | 3166 | # No logic applied whatsoever, just pass the raw reply back. | COMMENT |
| LOW | Lib/threading.py | 299 | # these override the default implementations (which just call | COMMENT |
| MEDIUM | Lib/turtle.py | 700 | """Set focus on canvas (in order to collect key-events) | STRING |
| MEDIUM | Lib/turtle.py | 1457 | """Set focus on TurtleScreen (in order to collect key-events) | STRING |
| MEDIUM | Lib/doctest.py | 1750 | # in conjunction with the ELLIPSIS flag. | STRING |
| LOW | Lib/argparse.py | 2370 | # for regular arguments, just add them back into the list | COMMENT |
| LOW | Lib/dataclasses.py | 581 | # via object.__setattr__. Otherwise, just use a simple | COMMENT |
| LOW | Lib/dataclasses.py | 637 | # just use the class attribute that contains the default. | COMMENT |
| LOW | Lib/tarfile.py | 1579 | # Normally, we could just use "utf-8" as the encoding and "strict" | COMMENT |
| LOW | Lib/_pydecimal.py | 3312 | # otherwise, simply return the adjusted exponent of self, as a | COMMENT |
| LOW | Lib/ntpath.py | 593 | # just return the old path. | COMMENT |
| LOW | Lib/test/test_winsound.py | 19 | # even *should* play. Instead of guessing, just call the function and assume | COMMENT |
| MEDIUM | Lib/test/test_wsgiref.py | 444 | # Not comprehensive, just a few random header names | COMMENT |
| MEDIUM | Lib/test/test_logging.py | 8 | # not be used in advertising or publicity pertaining to distribution | COMMENT |
| LOW | Lib/test/test_urllib2.py | 1177 | # required, so just use a dummy one to instantiate | COMMENT |
| MEDIUM | Lib/test/test_pdb.py | 1 | # A test suite for pdb; not very comprehensive at the moment. | COMMENT |
| MEDIUM⚡ | Lib/test/test_lzma.py | 514 | # Test robust handling of non-LZMA data following the compressed stream(s). | COMMENT |
| MEDIUM | Lib/test/test_os.py | 2240 | # We spawn a new process to make the test more robust (if getrlimit() | COMMENT |
| MEDIUM | Lib/test/test_decimal.py | 5875 | """The C Context docstrings use 'x' in order to prevent confusion | STRING |
| MEDIUM | Lib/test/test_grammar.py | 1965 | # This is not intended to be a comprehensive test, rather just to be few | STRING |
| MEDIUM | Lib/test/test_bytes.py | 2237 | # comprehensive for things like partition, etc. | COMMENT |
| LOW | Lib/test/test_py_compile.py | 252 | # assert_python_* helpers don't return proc object. We'll just use | COMMENT |
| LOW | Lib/test/test_subprocess.py | 1454 | # Subsequent invocations should just return the returncode | STRING |
| LOW | Lib/test/test_subprocess.py | 1460 | # Subsequent invocations should just return the returncode | STRING |
| MEDIUM | Lib/test/test_urllib2net.py | 35 | # Connecting to remote hosts is flaky. Make it more robust by retrying | COMMENT |
| MEDIUM | Lib/test/test_signal.py | 1396 | # a signal is ignored due to the aforementioned | STRING |
| MEDIUM | Lib/test/test_socketserver.py | 52 | # Don't raise an exception; it would be caught by the test harness. | COMMENT |
| LOW | Lib/test/test_unicode_file.py | 120 | # The 'test' functions are unittest entry points, and simply call our | COMMENT |
| MEDIUM | Lib/test/test_c_locale_coercion.py | 49 | # TODO: Work out a robust dynamic test for this that doesn't rely on | COMMENT |
| LOW | Lib/test/test_long.py | 1242 | # nonnegative second argument: round(x, n) should just return x | COMMENT |
| LOW | Lib/test/test_argparse.py | 172 | # redirected, simply call the function and let the enclosing function | COMMENT |
| LOW | Lib/test/test_types.py | 525 | # So, just use a sign flag | COMMENT |
| LOW | Lib/test/test_multiprocessing_main_handling.py | 81 | # so we just use "int" as a passthrough operation below | COMMENT |
| LOW | Lib/test/test_pyrepl/test_windows_console.py | 599 | # because for simplicity we just use | COMMENT |
| LOW | Lib/test/test_unittest/test_loader.py | 671 | # XXX Should this raise a ValueError or just return an empty TestSuite? | COMMENT |
| LOW | Lib/test/test_unittest/testmock/testmock.py | 1200 | # need to do this because MagicMock.mock_calls used to just return | COMMENT |
| MEDIUM | Lib/test/support/asyncore.py | 20 | # Rushing not be used in advertising or publicity pertaining to | COMMENT |
| MEDIUM | Lib/test/support/asynchat.py | 20 | # Rushing not be used in advertising or publicity pertaining to | COMMENT |
| LOW | Lib/zipfile/__init__.py | 292 | # end-of-archive record, so just return the end record we were given. | COMMENT |
| LOW | Lib/tkinter/__init__.py | 3882 | # right. Instead just set the command to build a list of triples | COMMENT |
| MEDIUM | Lib/xml/dom/minicompat.py | 18 | # defproperty -- function used in conjunction with GetattrMagic; | COMMENT |
| MEDIUM | Lib/xml/etree/ElementPath.py | 37 | # pertaining to distribution of the software without specific, written | COMMENT |
| MEDIUM | Lib/xml/etree/__init__.py | 19 | # pertaining to distribution of the software without specific, written | COMMENT |
| MEDIUM | Lib/xml/etree/ElementInclude.py | 31 | # pertaining to distribution of the software without specific, written | COMMENT |
| MEDIUM | Lib/xml/etree/ElementTree.py | 60 | # pertaining to distribution of the software without specific, written | COMMENT |
| MEDIUM | Lib/http/cookies.py | 12 | # pertaining to distribution of the software without specific, written | COMMENT |
| MEDIUM | Lib/http/server.py | 690 | # Essentially static class variables | COMMENT |
| MEDIUM | Lib/_pyrepl/reader.py | 267 | # facilitate the tab completion hack implemented for | COMMENT |
| MEDIUM | Lib/xmlrpc/client.py | 76 | # pertaining to distribution of the software without specific, written | COMMENT |
| MEDIUM | Lib/idlelib/mainmenu.py | 20 | # TODO: Make this more robust | COMMENT |
| MEDIUM | Lib/idlelib/pyparse.py | 51 | # so that we're robust in the face of incomplete program text. | STRING |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Lib/ipaddress.py | 29 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP | STRING |
| HIGH | Lib/ipaddress.py | 58 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP | STRING |
| HIGH | Lib/ipaddress.py | 87 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP | STRING |
| HIGH | Lib/ipaddress.py | 121 | Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat | STRING |
| HIGH | Lib/ipaddress.py | 305 | Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), | STRING |
| HIGH | Lib/ipaddress.py | 441 | Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi | STRING |
| HIGH | Lib/ipaddress.py | 471 | Return prefix length from a numeric string Args: prefixlen_str: The string to be converted | STRING |
| HIGH | Lib/ipaddress.py | 496 | Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver | STRING |
| HIGH | Lib/ipaddress.py | 792 | Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') | STRING |
| HIGH | Lib/ipaddress.py | 867 | Compare two IP objects. This is only concerned about the comparison of the integer representation of th | STRING |
| HIGH | Lib/ipaddress.py | 925 | The subnets which join to make the current subnet. In the case that self contains only one IP (self._pr | STRING |
| HIGH | Lib/ipaddress.py | 978 | The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi | STRING |
| HIGH | Lib/ipaddress.py | 1184 | Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. | STRING |
| HIGH | Lib/ipaddress.py | 1210 | Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R | STRING |
| HIGH | Lib/ipaddress.py | 1649 | Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: | STRING |
| HIGH | Lib/ipaddress.py | 1762 | Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. | STRING |
| HIGH | Lib/ipaddress.py | 1836 | Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. | STRING |
| HIGH | Lib/selectors.py | 22 | Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns | STRING |
| HIGH | Lib/selectors.py | 101 | Register a file object. Parameters: fileobj -- file object or file descriptor events -- events | STRING |
| HIGH | Lib/selectors.py | 124 | Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns: | STRING |
| HIGH | Lib/selectors.py | 142 | Change a registered file object monitored events or attached data. Parameters: fileobj -- file object o | STRING |
| HIGH | Lib/getpass.py | 30 | Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: | STRING |
| HIGH | Lib/concurrent/futures/_base.py | 194 | An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (pos | STRING |
| HIGH | Lib/concurrent/futures/_base.py | 425 | Return the result of the call that the future represents. Args: timeout: The number of seconds to w | STRING |
| HIGH | Lib/concurrent/futures/_base.py | 462 | Return the exception raised by the call that the future represents. Args: timeout: The number of se | STRING |
| HIGH | Lib/concurrent/futures/_base.py | 584 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume | STRING |
| HIGH | Lib/concurrent/futures/process.py | 824 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1378 | # Check if the module is the name of a directory (and thus a package). | COMMENT |
| LOW | scripts/update_lib/deps.py | 1659 | # Check if it's a test file | COMMENT |
| LOW | scripts/update_lib/cmd_auto_mark.py | 661 | # Check if there's a reason (on either the decorator or before) | COMMENT |
| LOW | scripts/update_lib/cmd_auto_mark.py | 759 | # Check if test run failed entirely (e.g., import error, crash) | COMMENT |
| LOW | scripts/update_lib/cmd_auto_mark.py | 892 | # Check if test run failed entirely (e.g., import error, crash) | COMMENT |
| LOW | scripts/update_lib/cmd_deps.py | 305 | # Check if module is up-to-date | COMMENT |
| LOW | scripts/update_lib/cmd_deps.py | 363 | # Check if it's a valid module | COMMENT |
| LOW | scripts/update_lib/cmd_todo.py | 203 | # Check if file belongs to a tracked module | COMMENT |
| LOW | scripts/update_lib/cmd_todo.py | 215 | # Check if this is a hard_dep of a tracked module | COMMENT |
| LOW | scripts/update_lib/cmd_todo.py | 219 | # Check if exists in local lib | COMMENT |
| LOW | scripts/update_lib/cmd_todo.py | 352 | # Check if corresponding lib is up-to-date | COMMENT |
| LOW | scripts/update_lib/cmd_quick.py | 251 | # Check if there are staged changes | COMMENT |
| LOW | Lib/dis.py | 584 | # Set argval to the dereferenced value of the argument when | COMMENT |
| LOW⚡ | Lib/_py_abc.py | 131 | # Check if it's a direct subclass | COMMENT |
| LOW⚡ | Lib/_py_abc.py | 135 | # Check if it's a subclass of a registered class (recursive) | COMMENT |
| LOW⚡ | Lib/_py_abc.py | 140 | # Check if it's a subclass of a subclass (recursive) | COMMENT |
| LOW | Lib/zipimport.py | 358 | # Check if there's a comment. | COMMENT |
| LOW | Lib/pyclbr.py | 143 | # Check if it is a built-in module; we don't do much for these. | COMMENT |
| LOW | Lib/heapq.py | 281 | # Set childpos to index of smaller child. | COMMENT |
| LOW | Lib/heapq.py | 317 | # Set childpos to index of larger child. | COMMENT |
| LOW | Lib/traceback.py | 1359 | # Check if it works | COMMENT |
| LOW⚡ | Lib/types.py | 305 | # Check if 'func' is a coroutine function. | COMMENT |
| LOW⚡ | Lib/types.py | 310 | # Check if 'func' is a generator function. | COMMENT |
| LOW | Lib/pdb.py | 227 | # Open the file each time because the file may be modified | COMMENT |
| LOW | Lib/pdb.py | 2798 | # Check if the interpreter is finalizing every quarter of a second. | COMMENT |
| LOW | Lib/poplib.py | 230 | # Check if the response has enough elements | COMMENT |
| LOW | Lib/plistlib.py | 683 | # Write file header | COMMENT |
| LOW | Lib/_py_warnings.py | 446 | # Check if message is already a Warning object | COMMENT |
| LOW | Lib/_py_warnings.py | 566 | # Print message and context | COMMENT |
| LOW | Lib/_osx_support.py | 412 | # Check if the SDK that is used during compilation actually exists, | COMMENT |
| LOW | Lib/compileall.py | 87 | # Check if this is a system where ProcessPoolExecutor can function. | COMMENT |
| LOW | Lib/doctest.py | 1803 | # Check if we should use diff. | STRING |
| LOW | Lib/doctest.py | 2200 | # Read the file, convert it to a test, and run it. | STRING |
| LOW | Lib/smtplib.py | 427 | # Check if multiline response. | COMMENT |
| LOW | Lib/graphlib.py | 174 | # Check if we know about this node (it was added previously using add() | COMMENT |
| LOW | Lib/tarfile.py | 1271 | # Check if one of the fields contains surrogate characters and thereby | COMMENT |
| LOW | Lib/tarfile.py | 1556 | # Check if the pax header contains a hdrcharset field. This tells us | COMMENT |
| LOW | Lib/typing.py | 1252 | # Check if any base that occurs after us in `bases` is either itself a | COMMENT |
| LOW | Lib/typing.py | 2076 | # Check if the members appears in the class dictionary... | COMMENT |
| LOW | Lib/tokenize.py | 389 | # Check if the line matches the encoding. | COMMENT |
| LOW | Lib/ctypes/util.py | 256 | # Check if the given file is an elf file: gcc can report | COMMENT |
| LOW | Lib/ctypes/util.py | 429 | # Check if the given file is an elf file: gcc can report | COMMENT |
| LOW | Lib/ctypes/__init__.py | 149 | # Check if sizeof(ctypes_type) against struct.calcsize. This | COMMENT |
| LOW | Lib/unittest/mock.py | 456 | # Check if spec is an async object or function | COMMENT |
| LOW | Lib/test/test_gzip.py | 204 | # Open the file for writing, then close it. | STRING |
| LOW | Lib/test/test_logging.py | 6243 | # Set level to NOTSET and ensure caches are empty | COMMENT |
| LOW | Lib/test/test_difflib.py | 258 | # Check if the problem described in patch #1413711 exists. | COMMENT |
| LOW | Lib/test/test_type_cache.py | 32 | # Check if global version tag has already overflowed. | COMMENT |
| LOW | Lib/test/test_typing.py | 4952 | # Check if a dictionary conforms to Dict type | COMMENT |
| LOW | Lib/test/test_typing.py | 4967 | # Check if an instance conforms to the generic class | COMMENT |
| LOW | Lib/test/test_typing.py | 4979 | # Check if list conforms to a List subclass | COMMENT |
| LOW | Lib/test/test_http_cookies.py | 104 | # Check if the cookie is loaded correctly | COMMENT |
| LOW | Lib/test/test_io.py | 3386 | # Check if the BOM is written only once (see issue1753). | COMMENT |
| LOW | Lib/test/test_compile.py | 1391 | # Check if bytecode containing jumps that simply point to the next line | STRING |
| LOW | Lib/test/test_annotationlib.py | 2351 | # Check if the passed in mutable arguments equal the originals | COMMENT |
| LOW | Lib/test/test_memoryio.py | 844 | bytearray(state[0]) # Check if state[0] supports the buffer interface. | CODE |
| LOW | Lib/test/test_codecs.py | 2920 | # Check if the BOM is written only once | COMMENT |
| LOW | Lib/test/test_tarfile.py | 4494 | # Set UID to 0 so chown() is attempted. | COMMENT |
| LOW | Lib/test/test_tarfile.py | 4530 | # Set UID to 0 so chown() is attempted. | COMMENT |
| LOW | Lib/test/test_pyrepl/test_terminfo.py | 595 | # Check if standard curses can setup this terminal in subprocess | COMMENT |
| 27 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/host_env/src/ssl/config.rs | 129 | // Step 1: Build the appropriate client cert verifier based on settings | COMMENT |
| LOW | crates/host_env/src/ssl/config.rs | 165 | // Step 2: Create ServerConfig builder once with the selected verifier | COMMENT |
| LOW | crates/host_env/src/ssl/config.rs | 333 | // Step 1: Build the appropriate verifier based on verification settings | COMMENT |
| LOW | crates/host_env/src/ssl/config.rs | 435 | // Step 2: Create ClientConfig builder once with the selected verifier | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 111 | // Step 0: Get executable path | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 118 | // Step 1: Check for PYTHONEXECUTABLE / __PYVENV_LAUNCHER__ | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 132 | // Step 2: Check for venv (pyvenv.cfg) and get 'home' | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 136 | // Step 3: Check for build directory | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 139 | // Step 4: Calculate prefix via landmark search | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 143 | // Step 5: Set prefix and base_prefix | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 157 | // Step 6: Calculate exec_prefix | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 166 | // Step 7: Calculate base_executable (if not already set by an env override) | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 171 | // Step 8: Build module_search_paths | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 175 | // Step 9: Calculate stdlib_dir | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 633 | // Step 1: Gather objects from generations 0..=generation | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 711 | // Step 3: Subtract internal references | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 743 | // Step 4: Find reachable objects (gc_refs > 0) and traverse from them | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 779 | // Step 5: Split the candidates on what step 4 concluded, and hand the | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 884 | // Step 6: Finalize unreachable objects and handle resurrection | COMMENT |
| LOW⚡ | crates/vm/src/builtins/genericalias.rs | 483 | // Step 1: Unpack args | COMMENT |
| LOW⚡ | crates/vm/src/builtins/genericalias.rs | 486 | // Step 2: Call __typing_prepare_subst__ on each parameter | COMMENT |
| LOW | crates/vm/src/builtins/genericalias.rs | 502 | // Step 3: Extract final arg items | COMMENT |
| LOW | crates/vm/src/builtins/genericalias.rs | 520 | // Step 4: Replace all type variables | COMMENT |
| LOW⚡ | scripts/libc_posix.py | 190 | # Step 1: Get all OS contants that we do want from upstream | COMMENT |
| LOW⚡ | scripts/libc_posix.py | 197 | # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}` | COMMENT |
| LOW⚡ | scripts/libc_posix.py | 207 | # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}' | COMMENT |
| LOW | scripts/libc_posix.py | 220 | # Step 4: Build output | COMMENT |
| LOW | scripts/update_lib/cmd_quick.py | 115 | # Step 1: Migrate | COMMENT |
| LOW | scripts/update_lib/cmd_quick.py | 157 | # Step 2: Auto-mark | COMMENT |
| LOW | scripts/update_lib/cmd_quick.py | 449 | # Step 3: Git commit | COMMENT |
| LOW | .github/workflows/upgrade-pylib.md | 63 | ## Step 1: Set up the environment | COMMENT |
| LOW | .github/workflows/upgrade-pylib.md | 75 | ## Step 2: Determine module name | COMMENT |
| LOW | .github/workflows/upgrade-pylib.md | 93 | ## Step 3: Run the upgrade | COMMENT |
| LOW | .github/workflows/upgrade-pylib.md | 105 | ## Step 4: Verify the result | COMMENT |
| LOW | .github/workflows/upgrade-pylib.md | 116 | ## Step 5: Create the pull request | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 82 | # Step 2: nameprep | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 85 | # Step 3: UseSTD3ASCIIRules is false | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 86 | # Step 4: try ASCII | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 100 | # Step 5: Check ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 105 | # Step 6: Encode with PUNYCODE | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 108 | # Step 7: Prepend ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 111 | # Step 8: Check size | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 141 | # Step 2: Perform nameprep | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 149 | # Step 3: Check for ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 154 | # Step 4: Remove ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 157 | # Step 5: Decode using PUNYCODE | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 164 | # Step 6: Apply ToASCII | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 167 | # Step 7: Compare the result of step 6 with the one of step 3 | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 173 | # Step 8: return the result of step 5 | COMMENT |
| LOW | Lib/encodings/idna.py | 68 | # Step 1: try ASCII | COMMENT |
| LOW | Lib/encodings/idna.py | 130 | # Step 1: Check for ASCII | COMMENT |
| LOW | Lib/email/header.py | 399 | # Step 1: Normalize the chunks so that all runs of identical charsets | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/host_env/src/ssl/config.rs | 129 | // Step 1: Build the appropriate client cert verifier based on settings | COMMENT |
| LOW | crates/host_env/src/ssl/config.rs | 165 | // Step 2: Create ServerConfig builder once with the selected verifier | COMMENT |
| LOW | crates/host_env/src/ssl/config.rs | 333 | // Step 1: Build the appropriate verifier based on verification settings | COMMENT |
| LOW | crates/host_env/src/ssl/config.rs | 435 | // Step 2: Create ClientConfig builder once with the selected verifier | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 111 | // Step 0: Get executable path | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 118 | // Step 1: Check for PYTHONEXECUTABLE / __PYVENV_LAUNCHER__ | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 132 | // Step 2: Check for venv (pyvenv.cfg) and get 'home' | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 136 | // Step 3: Check for build directory | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 139 | // Step 4: Calculate prefix via landmark search | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 143 | // Step 5: Set prefix and base_prefix | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 157 | // Step 6: Calculate exec_prefix | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 166 | // Step 7: Calculate base_executable (if not already set by an env override) | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 171 | // Step 8: Build module_search_paths | COMMENT |
| LOW⚡ | crates/vm/src/getpath.rs | 175 | // Step 9: Calculate stdlib_dir | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 633 | // Step 1: Gather objects from generations 0..=generation | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 711 | // Step 3: Subtract internal references | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 743 | // Step 4: Find reachable objects (gc_refs > 0) and traverse from them | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 779 | // Step 5: Split the candidates on what step 4 concluded, and hand the | COMMENT |
| LOW | crates/vm/src/gc_state.rs | 884 | // Step 6: Finalize unreachable objects and handle resurrection | COMMENT |
| LOW⚡ | crates/vm/src/builtins/genericalias.rs | 483 | // Step 1: Unpack args | COMMENT |
| LOW⚡ | crates/vm/src/builtins/genericalias.rs | 486 | // Step 2: Call __typing_prepare_subst__ on each parameter | COMMENT |
| LOW | crates/vm/src/builtins/genericalias.rs | 502 | // Step 3: Extract final arg items | COMMENT |
| LOW | crates/vm/src/builtins/genericalias.rs | 520 | // Step 4: Replace all type variables | COMMENT |
| LOW⚡ | scripts/libc_posix.py | 190 | # Step 1: Get all OS contants that we do want from upstream | COMMENT |
| LOW⚡ | scripts/libc_posix.py | 197 | # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}` | COMMENT |
| LOW⚡ | scripts/libc_posix.py | 207 | # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}' | COMMENT |
| LOW | scripts/libc_posix.py | 220 | # Step 4: Build output | COMMENT |
| LOW | scripts/update_lib/cmd_quick.py | 115 | # Step 1: Migrate | COMMENT |
| LOW | scripts/update_lib/cmd_quick.py | 157 | # Step 2: Auto-mark | COMMENT |
| LOW | scripts/update_lib/cmd_quick.py | 449 | # Step 3: Git commit | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 82 | # Step 2: nameprep | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 85 | # Step 3: UseSTD3ASCIIRules is false | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 86 | # Step 4: try ASCII | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 100 | # Step 5: Check ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 105 | # Step 6: Encode with PUNYCODE | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 108 | # Step 7: Prepend ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 111 | # Step 8: Check size | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 141 | # Step 2: Perform nameprep | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 149 | # Step 3: Check for ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 154 | # Step 4: Remove ACE prefix | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 157 | # Step 5: Decode using PUNYCODE | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 164 | # Step 6: Apply ToASCII | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 167 | # Step 7: Compare the result of step 6 with the one of step 3 | COMMENT |
| LOW⚡ | Lib/encodings/idna.py | 173 | # Step 8: return the result of step 5 | COMMENT |
| LOW | Lib/encodings/idna.py | 68 | # Step 1: try ASCII | COMMENT |
| LOW | Lib/encodings/idna.py | 130 | # Step 1: Check for ASCII | COMMENT |
| LOW | Lib/email/header.py | 399 | # Step 1: Normalize the chunks so that all runs of identical charsets | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Lib/tempfile.py | 558 | CODE | |
| LOW | Lib/tempfile.py | 631 | CODE | |
| LOW | Lib/tempfile.py | 713 | CODE | |
| LOW | Lib/lzma.py | 279 | CODE | |
| LOW | Lib/trace.py | 391 | CODE | |
| LOW | Lib/dis.py | 896 | CODE | |
| LOW | Lib/textwrap.py | 112 | CODE | |
| LOW | Lib/functools.py | 622 | CODE | |
| LOW | Lib/traceback.py | 1043 | CODE | |
| LOW | Lib/subprocess.py | 817 | CODE | |
| LOW | Lib/pydoc.py | 1411 | CODE | |
| LOW | Lib/ftplib.py | 711 | CODE | |
| LOW | Lib/optparse.py | 1168 | CODE | |
| LOW | Lib/pdb.py | 362 | CODE | |
| LOW | Lib/configparser.py | 654 | CODE | |
| LOW | Lib/reprlib.py | 51 | CODE | |
| LOW | Lib/compileall.py | 48 | CODE | |
| LOW | Lib/compileall.py | 132 | CODE | |
| LOW | Lib/_pydatetime.py | 1755 | CODE | |
| LOW | Lib/_pydatetime.py | 2044 | CODE | |
| LOW | Lib/doctest.py | 1986 | CODE | |
| LOW | Lib/doctest.py | 2091 | CODE | |
| LOW | Lib/argparse.py | 880 | CODE | |
| LOW | Lib/argparse.py | 967 | CODE | |
| LOW | Lib/argparse.py | 1067 | CODE | |
| LOW | Lib/argparse.py | 1869 | CODE | |
| LOW | Lib/dataclasses.py | 391 | CODE | |
| LOW | Lib/dataclasses.py | 1423 | CODE | |
| LOW | Lib/dataclasses.py | 1636 | CODE | |
| LOW | Lib/tarfile.py | 1016 | CODE | |
| LOW | Lib/tarfile.py | 1785 | CODE | |
| LOW | Lib/ssl.py | 730 | CODE | |
| LOW | Lib/_pydecimal.py | 3869 | CODE | |
| LOW | Lib/_pycodecs.py | 1455 | CODE | |
| LOW | Lib/unittest/runner.py | 189 | CODE | |
| LOW | Lib/unittest/main.py | 66 | CODE | |
| LOW | Lib/unittest/mock.py | 446 | CODE | |
| LOW | Lib/unittest/mock.py | 465 | CODE | |
| LOW | Lib/unittest/mock.py | 1154 | CODE | |
| LOW | Lib/test/test_faulthandler.py | 108 | CODE | |
| LOW | Lib/test/test_decimal.py | 4318 | CODE | |
| LOW | Lib/test/test_code.py | 858 | CODE | |
| LOW | Lib/test/mock_socket.py | 54 | CODE | |
| LOW | Lib/test/test_ssl.py | 273 | CODE | |
| LOW | Lib/test/test_ssl.py | 312 | CODE | |
| LOW | Lib/test/test_ssl.py | 2668 | CODE | |
| LOW | Lib/test/test_graphlib.py | 254 | CODE | |
| LOW | Lib/test/test_embed.py | 941 | CODE | |
| LOW | Lib/test/test_regrtest.py | 643 | CODE | |
| LOW | Lib/test/test_zipfile/test_core.py | 897 | CODE | |
| LOW | Lib/test/test_zoneinfo/data/update_test_data.py | 99 | CODE | |
| LOW | Lib/test/test_asyncio/test_tasks.py | 939 | CODE | |
| LOW | Lib/test/test_asyncio/test_tasks.py | 1768 | CODE | |
| LOW | Lib/urllib/request.py | 1028 | CODE | |
| LOW | Lib/urllib/request.py | 1043 | CODE | |
| LOW | Lib/tkinter/__init__.py | 4061 | CODE | |
| LOW | Lib/json/__init__.py | 120 | CODE | |
| LOW | Lib/json/__init__.py | 185 | CODE | |
| LOW | Lib/json/encoder.py | 265 | CODE | |
| LOW | Lib/json/encoder.py | 105 | CODE | |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Lib/socketserver.py | 276 | def handle_request(self): | CODE |
| LOW | Lib/contextlib.py | 304 | def helper(*args, **kwds): | CODE |
| LOW | Lib/contextlib.py | 337 | def helper(*args, **kwds): | CODE |
| LOW | Lib/test/test_unparse.py | 922 | def test_function(self): | CODE |
| LOW | Lib/test/test_gc.py | 228 | def test_function(self): | CODE |
| LOW | Lib/test/test_logging.py | 2154 | def handle_request(self, request): | CODE |
| LOW | Lib/test/test_with.py | 44 | def helper(*args, **kwds): | CODE |
| LOW | Lib/test/test_marshal.py | 19 | def helper(self, sample, *extra): | CODE |
| LOW | Lib/test/test_pdb.py | 720 | def do_something(): | CODE |
| LOW | Lib/test/test_pdb.py | 52 | >>> def test_function(foo, bar): | STRING |
| LOW | Lib/test/test_pdb.py | 97 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 233 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 364 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 415 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 440 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 486 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 519 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 641 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 667 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 688 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 742 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 769 | 1 def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 815 | ... def do_something(): | STRING |
| LOW | Lib/test/test_pdb.py | 833 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 866 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 936 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1008 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1093 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1114 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1132 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1189 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1285 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1367 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1421 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1494 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1527 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1559 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1634 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1686 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1723 | 1 def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1753 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1823 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1911 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2004 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2068 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2133 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2165 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2227 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2280 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2335 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2396 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2449 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2514 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2552 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2611 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2647 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2692 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2738 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2768 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2804 | >>> def test_function(): | STRING |
| 46 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Lib/test/test_fractions.py | 175 | CODE | |
| MEDIUM | Lib/test/test_itertools.py | 2440 | CODE | |
| MEDIUM | Lib/test/test_array.py | 1115 | CODE | |
| MEDIUM | Lib/test/test_generators.py | 578 | CODE | |
| MEDIUM | Lib/test/test_generators.py | 589 | CODE | |
| MEDIUM | Lib/test/test_exceptions.py | 1823 | CODE | |
| MEDIUM | Lib/test/test_compile.py | 901 | CODE | |
| MEDIUM | Lib/test/test_set.py | 21 | CODE | |
| MEDIUM | Lib/test/test_set.py | 1111 | CODE | |
| MEDIUM | Lib/test/test_deque.py | 16 | CODE | |
| MEDIUM | Lib/test/test_sys_settrace.py | 2766 | CODE | |
| MEDIUM | Lib/test/test_yield_from.py | 203 | CODE | |
| MEDIUM | Lib/test/test_yield_from.py | 204 | CODE | |
| MEDIUM | Lib/test/test_yield_from.py | 205 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 417 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 450 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 587 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 868 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 996 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 2051 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 2072 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 2096 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 837 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 911 | CODE | |
| MEDIUM | Lib/test/test_builtin.py | 1367 | CODE | |
| MEDIUM | Lib/test/test_dict.py | 291 | CODE | |
| MEDIUM | Lib/test/dtracedata/call_stack.py | 15 | CODE | |
| MEDIUM | Lib/test/test_unittest/test_async_case.py | 362 | CODE | |
| MEDIUM | extra_tests/snippets/stdlib_itertools.py | 624 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/common/src/compression/zlib.rs | 832 | let data = b"Lorem ipsum dolor sit amet, consectetur adipiscing elit"; | CODE |
| LOW | crates/common/src/compression/zlib.rs | 832 | let data = b"Lorem ipsum dolor sit amet, consectetur adipiscing elit"; | CODE |
| LOW | Lib/test/test_xml_etree.py | 1934 | <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback> | CODE |
| LOW | Lib/test/test_xml_etree.py | 2100 | ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n' | STRING |
| LOW | Lib/test/test_imaplib.py | 1682 | typ, data = client.setacl('INBOX', 'John Doe', 'a b') | CODE |
| LOW | Lib/test/test_imaplib.py | 1684 | self.assertEqual(server.args, ['INBOX', '"John Doe"', '"a b"']) | CODE |
| LOW | Lib/test/test_imaplib.py | 1695 | typ, data = client.deleteacl('New folder', 'John Doe') | CODE |
| LOW | Lib/test/test_imaplib.py | 1697 | self.assertEqual(server.args, ['"New folder"', '"John Doe"']) | CODE |
| LOW | Lib/test/test_ssl.py | 533 | ('email', 'null@python.org\x00user@example.org'), | CODE |
| LOW | Lib/test/test_ssl.py | 540 | ('email', 'null@python.org\x00user@example.org'), | CODE |
| LOW | Lib/test/test_ssl.py | 554 | ('email', 'user@example.org'), | CODE |
| LOW | Lib/test/test_urlparse.py | 414 | self.assertEqual(urllib.parse.urlparse('mailto:1337@example.org'), | CODE |
| LOW | Lib/test/test_urlparse.py | 415 | ('mailto', '', '1337@example.org', '', '', '')) | CODE |
| LOW | Lib/test/test_smtplib.py | 518 | m['From'] = 'foo@bar.com' | CODE |
| LOW | Lib/test/test_smtplib.py | 555 | m['From'] = 'foo@bar.com' | CODE |
| LOW | Lib/test/test_smtplib.py | 584 | m['From'] = 'foo@bar.com' | CODE |
| LOW | Lib/test/test_smtplib.py | 644 | m['From'] = 'foo@bar.com' | CODE |
| LOW | Lib/test/test_smtplib.py | 681 | m['From'] = 'foo@bar.com' | CODE |
| LOW | Lib/test/certdata/make_ssl_certs.py | 285 | 'email.1 = user@example.org', | STRING |
| LOW⚡ | Lib/test/test_dataclasses/__init__.py | 2289 | self.assertEqual(C.__doc__, "Lorem ipsum") | CODE |
| LOW⚡ | Lib/test/test_dataclasses/__init__.py | 2286 | """Lorem ipsum""" | STRING |
| LOW | Lib/test/test_email/test_generator.py | 539 | msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo") | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3436 | address = '"Alice, alice@example.org" <bob@example.com>' | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3437 | expected_strict = ('Alice, alice@example.org', 'bob@example.com') | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3446 | expected_strict = ('Alice', 'alice@example.org') | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3457 | [('', 'alice@example.org'), ('', ''), ('', 'Alice')]) | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3463 | address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>' | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3463 | address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>' | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3465 | [('Jane Doe', 'jane@example.net'), | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3466 | ('John Doe', 'john@example.net')]) | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3468 | [('Jane Doe', 'jane@example.net'), | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3469 | ('John Doe', 'john@example.net')]) | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3525 | eq(addrs[0][1], 'foo@bar.com') | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3725 | check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>', | STRING |
| LOW⚡ | Lib/test/test_email/test_email.py | 3725 | check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>', | STRING |
| LOW | Lib/test/test_email/test_email.py | 3391 | alice = 'alice@example.org' | STRING |
| LOW | Lib/test/test_email/test_email.py | 4232 | ('From: foo@bar.com', ('From', 'foo@bar.com')), | STRING |
| LOW | Lib/test/test_email/test_email.py | 4265 | ['foo@bar.com', | STRING |
| LOW | Lib/test/test_email/test_email.py | 4276 | [('From', 'foo@bar.com'), | STRING |
| LOW | Lib/test/test_email/test_email.py | 4288 | ['foo@bar.com', | STRING |
| LOW | Lib/test/test_email/test_message.py | 581 | ('To', 'foo@bar.com'), | STRING |
| LOW⚡ | extra_tests/snippets/stdlib_pwd.py | 12 | fake_name = "fake_user" | CODE |
| LOW⚡ | extra_tests/snippets/stdlib_pwd.py | 13 | while pwd.getpwnam(fake_name): | CODE |
| LOW⚡ | extra_tests/snippets/stdlib_pwd.py | 14 | fake_name += "1" | CODE |
| LOW⚡ | extra_tests/snippets/stdlib_zlib.py | 37 | lorem = bytes("Lorem ipsum dolor sit amet", "utf-8") | CODE |
| LOW⚡ | extra_tests/snippets/stdlib_zlib.py | 37 | lorem = bytes("Lorem ipsum dolor sit amet", "utf-8") | CODE |
| LOW⚡ | extra_tests/snippets/stdlib_zlib.py | 40 | b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5", | CODE |
| LOW⚡ | extra_tests/snippets/stdlib_zlib.py | 40 | b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/actions/install-macos-deps/action.yml | 12 | # repository before you can use this action. | COMMENT |
| MEDIUM | .github/actions/install-linux-deps/action.yml | 12 | # repository before you can use this action. | COMMENT |
| MEDIUM | Lib/heapq.py | 267 | # you can use it. | COMMENT |
| LOW | Lib/quopri.py | 91 | # Don't forget to include the soft line break `=' sign in the | COMMENT |
| MEDIUM | Lib/ntpath.py | 402 | # XXX With COMMAND.COM you can use any characters in a variable name, | COMMENT |
| LOW | Lib/test/test_gc.py | 1662 | # make sure to always test gc.enable() | STRING |
| LOW | Lib/test/_test_multiprocessing.py | 1491 | q.join_thread() # make sure to join the feeder thread | CODE |
| MEDIUM | Lib/test/test_logging.py | 411 | # level values which do not fit into these limitations, you can use a | COMMENT |
| LOW | Lib/test/test_bigmem.py | 45 | # - Don't forget to test for large indices, offsets and results and such, | COMMENT |
| MEDIUM⚡ | Lib/test/test_unittest/testmock/testmagicmethods.py | 533 | # Check if you can change behaviour of magic methods in MagicMock init | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/vm/src/exceptions.rs | 39 | // TODO: implement more detailed, non-recursive Debug formatter | COMMENT |
| LOW | crates/vm/src/builtins/list.rs | 45 | // TODO: implement more detailed, non-recursive Debug formatter | COMMENT |
| LOW | crates/vm/src/builtins/tuple.rs | 85 | // TODO: implement more informational, non-recursive Debug formatter | COMMENT |
| LOW | crates/vm/src/builtins/dict.rs | 60 | // TODO: implement more detailed, non-recursive Debug formatter | COMMENT |
| LOW | crates/vm/src/builtins/set.rs | 150 | // TODO: implement more detailed, non-recursive Debug formatter | COMMENT |
| LOW | crates/vm/src/builtins/set.rs | 157 | // TODO: implement more detailed, non-recursive Debug formatter | COMMENT |
| LOW | crates/vm/src/builtins/set.rs | 1671 | // TODO: implement more detailed, non-recursive Debug formatter | COMMENT |
| LOW | crates/vm/src/stdlib/_io.rs | 2812 | // TODO: implement legit fast-paths for other encodings | COMMENT |
| LOW | crates/vm/src/stdlib/_signal.rs | 347 | // TODO: implement warn_on_full_buffer | COMMENT |
| LOW | crates/stdlib/src/mmap.rs | 1092 | // TODO: implement using mremap on Linux | COMMENT |
| LOW | Lib/test/test_smtplib.py | 1285 | #TODO: add tests for correct AUTH method fallback now that the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | crates/stdlib/src/ssl.rs | 13 | //! Warning: This library contains AI-generated code and comments. Do not trust any code or comment without verification | COMMENT |
| HIGH | Lib/subprocess.py | 258 | # which is calling `CloseHandle` as requested in [1]), so there is nothing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Lib/imaplib.py | 1391 | # I'll update the code in '_get_response()'. | COMMENT |
| HIGH | Lib/test/test_asyncgen.py | 74 | # all methods of the iterator protocol. In this implementation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | Lib/test/test_unittest/testmock/testmock.py | 600 | # Usage example | COMMENT |
| LOW | Lib/zipfile/__init__.py | 717 | # Usage: | COMMENT |