The Python programming language
This report presents the forensic synthetic code analysis of python/cpython, a Python project with 73,786 GitHub stars. SynthScan v2.0 examined 2,264,120 lines of code across 3984 source files, recording 21949 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 9.3 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 21949 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | PC/layout/support/appxmanifest.py | 382 | def disable_registry_virtualization(xml): | CODE |
| LOW | PC/layout/support/nuspec.py | 64 | def _get_nuspec_data_overrides(ns): | STRING |
| LOW | Platforms/Apple/__main__.py | 1059 | def print_called_process_error(e: subprocess.CalledProcessError) -> None: | CODE |
| LOW | Platforms/emscripten/__main__.py | 41 | def required_emscripten_version(): | CODE |
| LOW⚡ | Platforms/emscripten/__main__.py | 466 | def configure_emscripten_python(context, working_dir): | CODE |
| LOW | Platforms/emscripten/__main__.py | 611 | def pythoninfo_emscripten_python(context): | CODE |
| LOW | Platforms/emscripten/__main__.py | 658 | def add_cross_build_dir_option(subcommand): | CODE |
| LOW | Platforms/emscripten/web_example/server.py | 22 | class MyHTTPRequestHandler(server.SimpleHTTPRequestHandler): | CODE |
| LOW | Platforms/Android/__main__.py | 1051 | def print_called_process_error(e): | CODE |
| LOW | Tools/picklebench/memory_dos_impact.py | 507 | def _extract_json_from_output(output: str) -> Dict[str, Dict[str, Any]]: | CODE |
| LOW | Tools/picklebench/memory_dos_impact.py | 666 | def format_antagonistic_comparison( | CODE |
| LOW | Tools/gdb/libpython.py | 81 | def interp_frame_has_tlbc_index(): | CODE |
| LOW | Tools/gdb/libpython.py | 750 | def items_from_keys_and_values(keys, values): | CODE |
| LOW | Tools/gdb/libpython.py | 1283 | def print_traceback_until_shim(self, frame_index=None): | CODE |
| LOW | Tools/gdb/libpython.py | 1882 | def get_selected_python_frame(cls): | CODE |
| LOW | Tools/gdb/libpython.py | 1900 | def get_selected_bytecode_frame(cls): | CODE |
| LOW | Tools/c-analyzer/distutils/ccompiler.py | 299 | # def runtime_library_dir_option(self, dir): | COMMENT |
| LOW | Tools/c-analyzer/distutils/msvc9compiler.py | 190 | def normalize_and_reduce_paths(paths): | CODE |
| LOW | Tools/c-analyzer/distutils/msvccompiler.py | 181 | def normalize_and_reduce_paths(paths): | CODE |
| LOW | Tools/c-analyzer/cpython/_analyzer.py | 297 | def _has_other_supported_type(decl): | CODE |
| LOW | Tools/c-analyzer/c_common/scriptutil.py | 336 | def add_failure_filtering_cli(parser, pool, *, default=False): | CODE |
| LOW | Tools/c-analyzer/c_common/tables.py | 203 | def _normalize_table_file_props(header, sep): | CODE |
| LOW | Tools/cases_generator/opcode_metadata_generator.py | 81 | def emit_stack_effect_function( | CODE |
| LOW | Tools/cases_generator/opcode_metadata_generator.py | 98 | def generate_stack_effect_functions(analysis: Analysis, out: CWriter) -> None: | CODE |
| LOW | Tools/cases_generator/opcode_metadata_generator.py | 138 | def generate_instruction_formats(analysis: Analysis, out: CWriter) -> None: | CODE |
| LOW | Tools/cases_generator/analyzer.py | 770 | def escaping_call_in_simple_stmt(stmt: SimpleStmt, result: dict[SimpleStmt, EscapingCall]) -> None: | CODE |
| LOW | Tools/cases_generator/analyzer.py | 926 | def stmt_has_jump_on_unpredictable_path_body(stmts: list[Stmt] | None, branches_seen: int) -> tuple[bool, int]: | CODE |
| LOW | Tools/cases_generator/analyzer.py | 937 | def stmt_has_jump_on_unpredictable_path(stmt: Stmt, branches_seen: int) -> tuple[bool, int]: | CODE |
| LOW | Tools/cases_generator/analyzer.py | 1304 | def get_instruction_size_for_uop(instructions: dict[str, Instruction], uop: Uop) -> int | None: | CODE |
| LOW | Tools/cases_generator/record_function_generator.py | 71 | def get_instruction_record_names(inst: Instruction) -> list[str]: | CODE |
| LOW | Tools/cases_generator/record_function_generator.py | 113 | def get_record_consumer_layout( | CODE |
| LOW | Tools/cases_generator/record_function_generator.py | 142 | def get_record_transform_input(uop: Uop) -> str: | CODE |
| LOW | Tools/cases_generator/record_function_generator.py | 151 | def generate_record_transform_function(uop: Uop, out: CWriter) -> None: | CODE |
| LOW | Tools/cases_generator/record_function_generator.py | 169 | def generate_recorder_functions(filenames: list[str], analysis: Analysis, out: CWriter) -> None: | CODE |
| LOW | Tools/cases_generator/record_function_generator.py | 277 | def generate_record_transform_dispatcher( | CODE |
| LOW | Tools/cases_generator/generators_common.py | 380 | def stackref_close_specialized( | STRING |
| LOW | Tools/cases_generator/py_metadata_generator.py | 46 | def generate_specialized_opmap(analysis: Analysis, out: CWriter) -> None: | CODE |
| LOW | Tools/cases_generator/target_generator.py | 50 | def write_tailcall_dispatch_table(analysis: Analysis, out: CWriter) -> None: | CODE |
| LOW | Tools/cases_generator/optimizer_generator.py | 174 | def replace_opcode_if_evaluates_pure( | CODE |
| LOW | Tools/cases_generator/optimizer_generator.py | 458 | def generate_abstract_interpreter( | CODE |
| LOW | Tools/jit/example_trace_dump.py | 103 | def short_loop_with_side_exits(n): | CODE |
| LOW | Tools/jit/example_trace_dump.py | 137 | ["def long_loop_with_side_exits(n):"] | CODE |
| LOW | Tools/jit/_dwarf.py | 109 | def _parse_objdump_instructions(dump: str) -> list[tuple[int, str]]: | CODE |
| LOW | Tools/jit/_optimizers.py | 609 | def _fixup_small_constant_pair( | CODE |
| LOW | Tools/jit/_optimizers.py | 683 | def _fixup_large_constant_pair( | CODE |
| LOW | Tools/jit/_stencils.py | 259 | def convert_labels_to_relocations(self) -> None: | CODE |
| LOW | Tools/jit/_stencils.py | 402 | def _emit_global_offset_table(self) -> None: | CODE |
| LOW | Tools/scripts/var_access_benchmark.py | 75 | def read_classvar_from_instance(trials=trials, A=A): | CODE |
| LOW⚡ | Tools/scripts/sortperf.py | 58 | def list_sort_ascending_exchanged(size: int, rand: random.Random) -> list[float]: | CODE |
| LOW⚡ | Tools/scripts/sortperf.py | 68 | def list_sort_ascending_random(size: int, rand: random.Random) -> list[float]: | CODE |
| LOW⚡ | Tools/scripts/sortperf.py | 76 | def list_sort_ascending_one_percent(size: int, rand: random.Random) -> list[float]: | CODE |
| LOW | Tools/scripts/summarize_stats.py | 54 | def _load_metadata_from_source(): | CODE |
| LOW⚡ | Tools/scripts/summarize_stats.py | 271 | def get_specialization_success_failure(self, opcode: str) -> dict[str, int]: | STRING |
| LOW⚡ | Tools/scripts/summarize_stats.py | 280 | def get_specialization_failure_total(self, opcode: str) -> int: | STRING |
| LOW⚡ | Tools/scripts/summarize_stats.py | 283 | def get_specialization_failure_kinds(self, opcode: str) -> dict[str, int]: | STRING |
| LOW | Tools/scripts/summarize_stats.py | 205 | def get_total_execution_count(self) -> int: | STRING |
| LOW | Tools/scripts/summarize_stats.py | 251 | def get_specialization_counts(self, opcode: str) -> dict[str, int]: | STRING |
| LOW | Tools/scripts/summarize_stats.py | 324 | def get_specialized_total_counts(self) -> tuple[int, int, int]: | STRING |
| LOW | Tools/scripts/summarize_stats.py | 745 | def calc_execution_count_table(prefix: str) -> RowCalculator: | STRING |
| LOW | Tools/scripts/summarize_stats.py | 833 | def iter_pre_succ_pairs_tables(base_stats: Stats, head_stats: Stats | None = None): | STRING |
| 12486 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | PC/venvlauncher.c | 21 | #define MS_WINDOWS | COMMENT |
| LOW | PC/zconf-ng.h | 61 | */ | COMMENT |
| LOW | PC/zconf-ng.h | 121 | #include <stddef.h> /* for wchar_t and NULL */ | COMMENT |
| LOW | PC/zconf-ng.h | 141 | # define Z_LFS64 | COMMENT |
| LOW | PC/zconf-ng.h | 161 | COMMENT | |
| LOW | PC/launcher2.c | 21 | #define MS_WINDOWS | COMMENT |
| LOW | PC/launcher2.c | 401 | // pointer and length into cmdline or a static string with the | COMMENT |
| LOW | PC/launcher2.c | 421 | // if true, treats 'tag' as a non-PEP 514 filter | COMMENT |
| LOW | PC/pyshellext.cpp | 1 | // Support back to Vista | COMMENT |
| LOW | PC/zbuild.h | 1 | #ifndef _ZBUILD_H | COMMENT |
| LOW | PC/zbuild.h | 21 | #ifdef __STDC_VERSION__ | COMMENT |
| LOW | PC/zbuild.h | 41 | COMMENT | |
| LOW | PC/zbuild.h | 61 | typedef __int64 ssize_t; | COMMENT |
| LOW | PC/zbuild.h | 81 | # define PREFIX2(x) ZLIB_ ## x | COMMENT |
| LOW | PC/zbuild.h | 121 | */ | COMMENT |
| LOW | PC/zbuild.h | 141 | # define ZSWAP16(q) _byteswap_ushort(q) | COMMENT |
| LOW | PC/zbuild.h | 161 | # define ZSWAP64(q) bswap64(q) | COMMENT |
| LOW | PC/zbuild.h | 181 | ((q & 0x000000FF00000000u) >> 8u) | \ | COMMENT |
| LOW | PC/zbuild.h | 201 | #elif defined(_MSC_VER) | COMMENT |
| LOW | PC/zbuild.h | 221 | #define PADSZ(bpos, pad) (((pad) - ((uintptr_t)(bpos) % (pad))) % (pad)) | COMMENT |
| LOW | PC/zbuild.h | 261 | # elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC) | COMMENT |
| LOW | PC/zbuild.h | 301 | void __asan_storeN(void *, long); | COMMENT |
| LOW | PC/pyconfig.h | 41 | would be ISO C conforming). Neither renaming is feasible, so | COMMENT |
| LOW | PC/pyconfig.h | 61 | #define HAVE_STRFTIME | COMMENT |
| LOW | PC/pyconfig.h | 81 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) | COMMENT |
| LOW | PC/pyconfig.h | 161 | #define _Py_COMPILER ("[Clang " __clang_version__ "] 64 bit (AMD64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]") | COMMENT |
| LOW | PC/pyconfig.h | 201 | #define _WIN32_WINNT Py_WINVER | COMMENT |
| LOW | PC/pyconfig.h | 221 | #if defined(_M_IX86) | COMMENT |
| LOW | PC/pyconfig.h | 301 | COMMENT | |
| LOW | PC/pyconfig.h | 321 | #ifdef MS_COREDLL | COMMENT |
| LOW | PC/pyconfig.h | 341 | # pragma comment(lib,"python316_d.lib") | COMMENT |
| LOW | PC/pyconfig.h | 361 | # define SIZEOF_OFF_T 4 | COMMENT |
| LOW | PC/pyconfig.h | 381 | # define ALIGNOF_SIZE_T 4 | COMMENT |
| LOW | PC/pyconfig.h | 401 | /* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200. | COMMENT |
| LOW | PC/pyconfig.h | 741 | #define HAVE_GETHOSTBYNAME 1 | COMMENT |
| LOW | PC/msvcrtmodule.c | 21 | #include "malloc.h" | COMMENT |
| LOW | PC/_wmimodule.cpp | 1 | // | COMMENT |
| LOW | PC/python_uwp.cpp | 1 | /* Main program when embedded in a UWP application on Windows */ | COMMENT |
| LOW | PC/python_ver_rc.h | 1 | // Resource script for Python core DLL. | COMMENT |
| LOW | PC/python_ver_rc.h | 21 | #define PYTHON_VERSION PY_VERSION "\0" | COMMENT |
| LOW | PC/zconf.h | 21 | # define z_const const | COMMENT |
| LOW | PC/zconf.h | 61 | #endif | COMMENT |
| LOW | PC/zconf.h | 81 | */ | COMMENT |
| LOW | PC/zconf.h | 101 | #endif | COMMENT |
| LOW | PC/zconf.h | 161 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | COMMENT |
| LOW | PC/zconf.h | 181 | # define SEEK_SET 0 /* Seek from beginning of file. */ | COMMENT |
| LOW | PC/clinic/msvcrtmodule.c.h | 721 | #endif /* !defined(MSVCRT_GETWCHE_METHODDEF) */ | COMMENT |
| LOW | PC/clinic/msvcrtmodule.c.h | 741 | #endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */ | COMMENT |
| LOW | PC/clinic/winreg.c.h | 1721 | COMMENT | |
| LOW | PC/clinic/winreg.c.h | 1741 | #define WINREG_HKEYTYPE___EXIT___METHODDEF | COMMENT |
| LOW | PC/clinic/winreg.c.h | 1761 | #define WINREG_DELETEKEY_METHODDEF | COMMENT |
| LOW | PC/clinic/winreg.c.h | 1781 | #define WINREG_EXPANDENVIRONMENTSTRINGS_METHODDEF | COMMENT |
| LOW | PC/clinic/winreg.c.h | 1801 | #define WINREG_QUERYINFOKEY_METHODDEF | COMMENT |
| LOW | PC/clinic/winreg.c.h | 1821 | #define WINREG_SETVALUEEX_METHODDEF | COMMENT |
| LOW | Misc/platform_triplet.c | 1 | /* Detect platform triplet from builtin defines | COMMENT |
| LOW | Misc/platform_triplet.c | 21 | # elif defined(__aarch64__) | COMMENT |
| LOW | Misc/platform_triplet.c | 41 | # define LIBC_X32 gnux32 | COMMENT |
| LOW | Misc/platform_triplet.c | 61 | # define LIBC_MIPS gnu | COMMENT |
| LOW | Misc/platform_triplet.c | 81 | # if defined(__SPE__) | COMMENT |
| LOW | Misc/platform_triplet.c | 101 | # define LIBC_LA muslf32 | COMMENT |
| 4124 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Platforms/emscripten/prepare_external_wasm.py | 16 | bytes.push(parseInt(hex.substr(i, 2), 16)); | CODE |
| HIGH⚡ | Platforms/emscripten/__main__.py | 447 | f"source ~/.nvm/nvm.sh && nvm install {node_version}", | CODE |
| HIGH⚡ | Platforms/emscripten/__main__.py | 456 | f"source ~/.nvm/nvm.sh && nvm which {node_version}", | CODE |
| HIGH | Platforms/emscripten/__main__.py | 543 | elif which realpath > /dev/null 2>&1 && realpath --version > /dev/null 2>&1 && realpath --version | grep GNU | CODE |
| HIGH | Tools/unicode/genmap_schinese.py | 105 | print("Generating GB2312 && GBK encode map...") | CODE |
| HIGH | Tools/unicode/genmap_japanese.py | 180 | print("Generating JIS X 0208 && JIS X 0212 encode map...") | CODE |
| HIGH | Tools/cases_generator/opcode_metadata_generator.py | 349 | out.emit(f"if (pseudo < 256 || pseudo >= {256+table_size}) {{\n") | CODE |
| HIGH | Tools/cases_generator/tier1_generator.py | 267 | if reachable: # type: ignore[possibly-undefined] | STRING |
| HIGH | Tools/cases_generator/uop_metadata_generator.py | 128 | stack.pop(var, null) | STRING |
| HIGH | Tools/cases_generator/stack.py | 231 | self.push(Local.register(f"_stack_item_{i}")) | CODE |
| HIGH | Tools/cases_generator/stack.py | 293 | self.logical_sp = self.logical_sp.push(var.item) | CODE |
| HIGH | Tools/cases_generator/stack.py | 329 | var_offset = var_offset.push(var.item) | CODE |
| HIGH | Tools/cases_generator/stack.py | 479 | local = stack.pop(var, null) | CODE |
| HIGH | Tools/cases_generator/stack.py | 487 | stack.push(local) | CODE |
| HIGH | Tools/cases_generator/stack.py | 563 | f"Expected '{undefined}' to be defined before '{out.name}'" | CODE |
| HIGH | Tools/cases_generator/stack.py | 568 | self.stack.push(out) | CODE |
| HIGH | Tools/cases_generator/stack.py | 638 | offset = offset.push(ouput) | CODE |
| HIGH | Tools/cases_generator/stack.py | 640 | stack.push(var) | CODE |
| HIGH | Tools/cases_generator/stack.py | 717 | self.stack.push(out) | CODE |
| HIGH | Tools/cases_generator/stack.py | 787 | self.stack.push(output) | CODE |
| HIGH | Tools/cases_generator/stack.py | 815 | self.stack.push(output) | CODE |
| HIGH | Tools/cases_generator/tier2_generator.py | 55 | stack.pop(var, null) | CODE |
| HIGH | Tools/cases_generator/tier2_generator.py | 57 | stack.push(Local.undefined(var)) | CODE |
| HIGH⚡ | Tools/cases_generator/optimizer_generator.py | 118 | stack.pop(var, null) | CODE |
| HIGH⚡ | Tools/cases_generator/optimizer_generator.py | 124 | offset = offset.push(var) | CODE |
| HIGH⚡ | Tools/cases_generator/optimizer_generator.py | 127 | stack.push(local) | CODE |
| HIGH | Tools/cases_generator/optimizer_generator.py | 441 | for var in storage.inputs: # type: ignore[possibly-undefined] | CODE |
| HIGH⚡ | Tools/clinic/libclinic/clanguage.py | 195 | condition = f"kwnames && PyTuple_Size(kwnames) && {condition}" | STRING |
| HIGH⚡ | Tools/clinic/libclinic/clanguage.py | 197 | condition = f"kwnames && PyTuple_GET_SIZE(kwnames) && {condition}" | STRING |
| HIGH⚡ | Tools/clinic/libclinic/clanguage.py | 200 | condition = f"kwargs && PyDict_Size(kwargs) && {condition}" | STRING |
| HIGH⚡ | Tools/clinic/libclinic/clanguage.py | 202 | condition = f"kwargs && PyDict_GET_SIZE(kwargs) && {condition}" | STRING |
| HIGH | Tools/clinic/libclinic/parse_args.py | 405 | if (nargs || (kwnames && PyTuple_GET_SIZE(kwnames))) {{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 124 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 236 | if (ival == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 273 | if (ival == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 335 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 383 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 412 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 483 | if (ival == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 499 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 539 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 556 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 578 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 620 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 629 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 653 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/clinic/libclinic/converters.py | 662 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ | CODE |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 399 | self.print("if (p->level++ == MAXSTACK || _Py_ReachedRecursionLimitWithMargin(PyThreadState_Get(), 1)) {") | STRING |
| HIGH⚡ | Tools/peg_generator/pegen/c_generator.py | 537 | self.print("if (p->mark == p->fill && _PyPegen_fill_token(p) < 0) {") | STRING |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 586 | self.print("if (_raw == NULL || p->mark <= _resmark)") | STRING |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 660 | self.print("if (_n == 0 || p->error_indicator) {") | STRING |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 742 | self.print("if ((_res == NULL || p->error_indicator) && PyErr_Occurred()) {") | STRING |
| HIGH | Parser/asdl_c.py | 556 | self.emit("if (!isinstance && field != NULL) {", 1) | CODE |
| HIGH | Parser/asdl_c.py | 672 | self.emit("if (tmp == NULL || tmp == Py_None) {", depth) | CODE |
| HIGH | Parser/asdl_c.py | 1348 | if (kwargs && PyDict_Update(payload, kwargs) < 0) { | STRING |
| HIGH | Parser/asdl_c.py | 1453 | if (i == 0 && length > 2) { | STRING |
| HIGH | Parser/asdl_c.py | 1774 | if (i == -1 && PyErr_Occurred()) | STRING |
| HIGH | Parser/asdl_c.py | 2140 | assert(0 <= mode && mode <= 2); | CODE |
| HIGH | Mac/BuildScript/build-installer.py | 288 | install='make TCL_LIBRARY=%(TCL_LIBRARY)s && make install TCL_LIBRARY=%(TCL_LIBRARY)s DESTDIR=%(DESTDIR)s' | STRING |
| HIGH | Mac/BuildScript/build-installer.py | 306 | install='make TCL_LIBRARY=%(TCL_LIBRARY)s TK_LIBRARY=%(TK_LIBRARY)s && make install TCL_LIBRARY=%(TCL_LIBR | STRING |
| 358 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | PC/layout/main.py | 129 | CODE | |
| LOW | PC/layout/main.py | 385 | CODE | |
| LOW | PC/layout/main.py | 459 | CODE | |
| LOW | PC/layout/support/constants.py | 45 | CODE | |
| LOW | PC/layout/support/appxmanifest.py | 334 | CODE | |
| LOW | PC/layout/support/filesets.py | 42 | CODE | |
| LOW | Platforms/Apple/__main__.py | 284 | CODE | |
| LOW | Platforms/Apple/__main__.py | 295 | CODE | |
| LOW | Platforms/Apple/__main__.py | 788 | CODE | |
| LOW | Platforms/Apple/testbed/__main__.py | 292 | CODE | |
| LOW | Platforms/emscripten/wasm_assets.py | 136 | CODE | |
| LOW | Platforms/Android/__main__.py | 465 | CODE | |
| LOW | Platforms/Android/__main__.py | 488 | CODE | |
| LOW | Platforms/Android/__main__.py | 770 | CODE | |
| LOW | Tools/picklebench/memory_dos_impact.py | 79 | CODE | |
| LOW | Tools/picklebench/memory_dos_impact.py | 666 | CODE | |
| LOW | Tools/picklebench/memory_dos_impact.py | 828 | CODE | |
| LOW | Tools/ssl/multissltests.py | 526 | CODE | |
| LOW | Tools/gdb/libpython.py | 674 | CODE | |
| LOW | Tools/gdb/libpython.py | 2071 | CODE | |
| LOW | Tools/gdb/libpython.py | 478 | CODE | |
| LOW | Tools/gdb/libpython.py | 1393 | CODE | |
| LOW | Tools/gdb/libpython.py | 1504 | CODE | |
| LOW | Tools/freeze/parsesetup.py | 48 | CODE | |
| LOW | Tools/freeze/makefreeze.py | 32 | CODE | |
| LOW | Tools/freeze/freeze.py | 111 | CODE | |
| LOW | Tools/freeze/checkextensions.py | 8 | CODE | |
| LOW | Tools/freeze/makeconfig.py | 9 | CODE | |
| LOW | Tools/freeze/test/freeze.py | 67 | CODE | |
| LOW | Tools/c-analyzer/table-file.py | 19 | CODE | |
| LOW | Tools/c-analyzer/table-file.py | 59 | CODE | |
| LOW | Tools/c-analyzer/distutils/_msvccompiler.py | 26 | CODE | |
| LOW | Tools/c-analyzer/distutils/ccompiler.py | 428 | CODE | |
| LOW | Tools/c-analyzer/distutils/msvc9compiler.py | 250 | CODE | |
| LOW | Tools/c-analyzer/distutils/util.py | 12 | CODE | |
| LOW | Tools/c-analyzer/distutils/util.py | 112 | CODE | |
| LOW | Tools/c-analyzer/distutils/cygwinccompiler.py | 57 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 365 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 724 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 47 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 77 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 163 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 265 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 327 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 523 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 640 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 664 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1175 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1403 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1498 | CODE | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1606 | CODE | |
| LOW | Tools/c-analyzer/c_parser/__main__.py | 63 | CODE | |
| LOW | Tools/c-analyzer/c_parser/match.py | 61 | CODE | |
| LOW | Tools/c-analyzer/c_parser/match.py | 144 | CODE | |
| LOW | Tools/c-analyzer/c_parser/parser/_compound_decl_body.py | 51 | CODE | |
| LOW | Tools/c-analyzer/c_parser/parser/_common.py | 10 | CODE | |
| LOW | Tools/c-analyzer/c_parser/parser/__init__.py | 169 | CODE | |
| LOW | Tools/c-analyzer/c_parser/parser/_global.py | 56 | CODE | |
| LOW | Tools/c-analyzer/c_parser/parser/_func_body.py | 46 | CODE | |
| LOW | Tools/c-analyzer/c_parser/parser/_func_body.py | 190 | CODE | |
| 1517 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tools/unicode/makeunicodedata.py | 43 | # -------------------- | COMMENT |
| MEDIUM | Tools/unicode/makeunicodedata.py | 174 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | Tools/unicode/makeunicodedata.py | 503 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | Tools/unicode/makeunicodedata.py | 716 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | Tools/unicode/makeunicodedata.py | 1021 | # -------------------------------------------------------------------- | STRING |
| MEDIUM | Tools/scripts/sortperf.py | 28 | # =============== | COMMENT |
| MEDIUM | Tools/scripts/sortperf.py | 30 | # =============== | COMMENT |
| MEDIUM | Parser/asdl.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | Parser/asdl.py | 21 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Lib/heapq.py | 412 | # ============================================== | COMMENT |
| MEDIUM | Lib/heapq.py | 442 | # ----------------------------------------------- | COMMENT |
| MEDIUM | Lib/heapq.py | 462 | # ---------------------- | COMMENT |
| MEDIUM | Lib/heapq.py | 469 | # ---------------------- | COMMENT |
| MEDIUM | Lib/numbers.py | 50 | ## ---------------- | COMMENT |
| MEDIUM | Lib/random.py | 203 | ## ------------------------------------------------------- | COMMENT |
| MEDIUM | Lib/random.py | 277 | ## -------------------------------------------------------- | COMMENT |
| MEDIUM | Lib/random.py | 889 | ## ------------------------------------------------------------------ | COMMENT |
| MEDIUM | Lib/random.py | 930 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | Lib/random.py | 964 | ## ------------------------------------------------------ | COMMENT |
| MEDIUM | Lib/random.py | 1005 | ## ------------------------------------------------------ | COMMENT |
| MEDIUM | Lib/random.py | 1012 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | Lib/argparse.py | 106 | # ============================= | COMMENT |
| MEDIUM | Lib/argparse.py | 108 | # ============================= | COMMENT |
| MEDIUM | Lib/argparse.py | 157 | # =============== | COMMENT |
| MEDIUM | Lib/argparse.py | 159 | # =============== | COMMENT |
| MEDIUM | Lib/argparse.py | 239 | # =============================== | COMMENT |
| MEDIUM | Lib/argparse.py | 241 | # =============================== | COMMENT |
| MEDIUM | Lib/argparse.py | 291 | # ======================== | COMMENT |
| MEDIUM | Lib/argparse.py | 293 | # ======================== | COMMENT |
| MEDIUM | Lib/argparse.py | 335 | # ======================= | COMMENT |
| MEDIUM | Lib/argparse.py | 337 | # ======================= | COMMENT |
| MEDIUM⚡ | Lib/argparse.py | 866 | # ===================== | STRING |
| MEDIUM⚡ | Lib/argparse.py | 868 | # ===================== | STRING |
| MEDIUM⚡ | Lib/argparse.py | 1576 | # ==================== | STRING |
| MEDIUM⚡ | Lib/argparse.py | 1578 | # ==================== | STRING |
| MEDIUM⚡ | Lib/argparse.py | 1587 | # ================================== | STRING |
| MEDIUM⚡ | Lib/argparse.py | 1589 | # ================================== | STRING |
| MEDIUM | Lib/argparse.py | 918 | # ============== | STRING |
| MEDIUM | Lib/argparse.py | 920 | # ============== | STRING |
| MEDIUM | Lib/argparse.py | 1439 | # ============== | STRING |
| MEDIUM | Lib/argparse.py | 1441 | # ============== | STRING |
| MEDIUM | Lib/argparse.py | 1500 | # =========================== | STRING |
| MEDIUM | Lib/argparse.py | 1502 | # =========================== | STRING |
| MEDIUM | Lib/argparse.py | 1607 | # ======================= | STRING |
| MEDIUM | Lib/argparse.py | 1609 | # ======================= | STRING |
| MEDIUM | Lib/argparse.py | 2040 | # ======================= | STRING |
| MEDIUM | Lib/argparse.py | 2042 | # ======================= | STRING |
| MEDIUM | Lib/argparse.py | 2055 | # ================================== | STRING |
| MEDIUM | Lib/argparse.py | 2057 | # ================================== | STRING |
| MEDIUM | Lib/argparse.py | 2113 | # ===================================== | STRING |
| MEDIUM | Lib/argparse.py | 2115 | # ===================================== | STRING |
| MEDIUM | Lib/argparse.py | 2676 | # ======================== | STRING |
| MEDIUM | Lib/argparse.py | 2678 | # ======================== | STRING |
| MEDIUM | Lib/argparse.py | 2708 | # ======================== | STRING |
| MEDIUM | Lib/argparse.py | 2710 | # ======================== | STRING |
| MEDIUM | Lib/argparse.py | 2808 | # ======================= | STRING |
| MEDIUM | Lib/argparse.py | 2810 | # ======================= | STRING |
| MEDIUM | Lib/argparse.py | 2859 | # ===================== | STRING |
| MEDIUM | Lib/argparse.py | 2861 | # ===================== | STRING |
| MEDIUM | Lib/argparse.py | 2902 | # =============== | STRING |
| 340 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Misc/mypy/_colorize.py | 569 | except Exception: | CODE |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 529 | print("Error: Could not find JSON output from baseline", file=sys.stderr) | CODE |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 536 | print(f"Error: Could not parse baseline JSON output: {e}", file=sys.stderr) | CODE |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 569 | print(f"Error running baseline benchmark:", file=sys.stderr) | CODE |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 577 | print("Error: Baseline benchmark timed out", file=sys.stderr) | CODE |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 1012 | print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr) | CODE |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 1048 | print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr) | CODE |
| LOW | Tools/ssl/multissltests.py | 578 | except Exception as e: | CODE |
| LOW | Tools/gdb/libpython.py | 1214 | except Exception as ex: | CODE |
| MEDIUM | Tools/gdb/libpython.py | 257 | def safe_tp_name(self): | CODE |
| LOW | Tools/c-analyzer/c_parser/__init__.py | 28 | except Exception: | CODE |
| LOW | Tools/c-analyzer/c_parser/info.py | 215 | except Exception: | CODE |
| MEDIUM | Tools/c-analyzer/c_parser/info.py | 212 | def _make(cls, iterable): | CODE |
| LOW | Tools/c-analyzer/c_parser/source.py | 29 | except Exception: | CODE |
| LOW | Tools/c-analyzer/cpython/_capi.py | 365 | except Exception as exc: | STRING |
| LOW | Tools/c-analyzer/cpython/__main__.py | 174 | except Exception: | STRING |
| LOW | Tools/c-analyzer/c_common/scriptutil.py | 227 | except Exception as exc: | CODE |
| LOW | Tools/unicode/listcodecs.py | 25 | except Exception as reason: | CODE |
| LOW | Tools/cases_generator/generators_common.py | 318 | except Exception as ex: | STRING |
| LOW | Tools/inspection/benchmark_external_inspection.py | 550 | except Exception as e: | STRING |
| LOW | Tools/clinic/libclinic/dsl_parser.py | 1005 | except Exception as e: | CODE |
| LOW | Tools/peg_generator/pegen/first_sets.py | 139 | except Exception as err: | CODE |
| LOW | Tools/peg_generator/pegen/grammar_visualizer.py | 55 | except Exception as err: | CODE |
| LOW | Tools/peg_generator/pegen/__main__.py | 42 | except Exception as err: | CODE |
| LOW | Tools/peg_generator/pegen/__main__.py | 67 | except Exception as err: | CODE |
| LOW | Parser/asdl.py | 153 | except Exception as e: | CODE |
| MEDIUM | Parser/asdl.py | 154 | print("Error visiting %r: %s" % (obj, e)) | 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 | 83 | except Exception: | CODE |
| LOW | Lib/rlcompleter.py | 162 | except Exception: | CODE |
| LOW | Lib/zipimport.py | 575 | except Exception: | CODE |
| LOW | Lib/zipimport.py | 605 | except Exception: | CODE |
| LOW | Lib/zipimport.py | 669 | except Exception: | CODE |
| LOW | Lib/zipimport.py | 675 | except Exception: | CODE |
| MEDIUM | Lib/zipimport.py | 295 | def _read_directory(archive): | CODE |
| LOW | Lib/wave.py | 413 | except Exception: | CODE |
| LOW | Lib/weakref.py | 569 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1160 | except Exception as e: | CODE |
| LOW | Lib/traceback.py | 1440 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1933 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1945 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1953 | except Exception: | CODE |
| LOW | Lib/traceback.py | 1978 | except Exception: | CODE |
| MEDIUM | Lib/code.py | 155 | print('Error in sys.excepthook:', file=sys.stderr) | CODE |
| MEDIUM | Lib/pydoc.py | 591 | def repr_instance(self, x, level): | CODE |
| LOW | Lib/pydoc.py | 948 | except Exception: | CODE |
| LOW | Lib/pydoc.py | 994 | except Exception: | CODE |
| LOW | Lib/pydoc.py | 1452 | except Exception: | CODE |
| LOW | Lib/pydoc.py | 2674 | except Exception as exc: | CODE |
| LOW | Lib/pydoc.py | 2264 | except Exception: | STRING |
| LOW | Lib/pydoc.py | 2428 | except Exception as err: | STRING |
| LOW | Lib/socketserver.py | 316 | except Exception: | CODE |
| LOW | Lib/socketserver.py | 629 | except Exception: | CODE |
| LOW | Lib/socketserver.py | 695 | except Exception: | CODE |
| MEDIUM | Lib/pdb.py | 204 | print(f'Error: {target} does not exist') | CODE |
| MEDIUM | Lib/pdb.py | 207 | print(f'Error: {target} is a directory') | CODE |
| MEDIUM | Lib/pdb.py | 904 | def _get_asyncio_task(self): | CODE |
| MEDIUM | Lib/pdb.py | 1391 | def _complete_indentation(self, text, line, begidx, endidx): | CODE |
| 679 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Platforms/Apple/__main__.py | 644 | # Create a simlink for the fat library | COMMENT |
| MEDIUM | Platforms/Apple/__main__.py | 719 | # Create an XCframework | COMMENT |
| MEDIUM | Tools/freeze/freeze.py | 440 | # Create a module definition for the bootstrap C code. | COMMENT |
| MEDIUM | Tools/freeze/checkextensions_win32.py | 58 | # Create a table of frozen extensions | COMMENT |
| MEDIUM | Tools/unicode/dawg.py | 18 | # This class represents a node in the directed acyclic word graph (DAWG). It | COMMENT |
| MEDIUM | Tools/unicode/mkstringprep.py | 112 | print("""# This file is generated by mkstringprep.py. DO NOT EDIT. | CODE |
| MEDIUM⚡ | Parser/asdl.py | 30 | # The following classes define nodes into which the ASDL description is parsed. | COMMENT |
| MEDIUM | Mac/BuildScript/build-installer.py | 1755 | # Create the installer | STRING |
| MEDIUM | Lib/_pyio.py | 274 | # Define a default pure-Python implementation for open_code() | STRING |
| MEDIUM | Lib/ipaddress.py | 1527 | """This class represents and manipulates 32-bit IPv4 network + addresses.. | STRING |
| MEDIUM | Lib/ipaddress.py | 2321 | """This class represents and manipulates 128-bit IPv6 networks. | STRING |
| MEDIUM | Lib/webbrowser.py | 780 | # 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 | 885 | # The following methods can be called by clients to use | COMMENT |
| MEDIUM | Lib/bdb.py | 936 | # 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/gettext.py | 13 | # This module represents the integration of work, contributions, feedback, and | COMMENT |
| MEDIUM | Lib/modulefinder.py | 658 | # Create the module finder and turn its crank | COMMENT |
| MEDIUM⚡ | Lib/hashlib.py | 133 | # This function is only used until the module has been initialized. | STRING |
| MEDIUM | Lib/hashlib.py | 273 | # The following code can be simplified in Python 3.19 | STRING |
| MEDIUM | Lib/subprocess.py | 2158 | # This method is called (indirectly) by __del__, so it cannot | COMMENT |
| MEDIUM | Lib/subprocess.py | 2431 | # This method is called from the _communicate_with_*() methods | COMMENT |
| MEDIUM | Lib/profile.py | 438 | # 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 | 757 | # Create a link for methods like 'self.method(...)' | COMMENT |
| MEDIUM⚡ | Lib/types.py | 329 | # The following code is primarily to support functions that | COMMENT |
| MEDIUM | Lib/pdb.py | 697 | """This method is called when there is the remote possibility | STRING |
| MEDIUM | Lib/pdb.py | 706 | """This function is called when we stop or break at this line.""" | STRING |
| MEDIUM | Lib/pdb.py | 739 | """This function is called when a return trap is set here.""" | STRING |
| MEDIUM | Lib/pdb.py | 748 | """This function is called if an exception occurs, | STRING |
| MEDIUM | Lib/threading.py | 141 | """This class implements reentrant lock objects. | STRING |
| MEDIUM | Lib/threading.py | 324 | # This method is called only if _lock doesn't have _is_owned(). | COMMENT |
| MEDIUM | Lib/threading.py | 454 | """This class implements semaphore objects. | STRING |
| MEDIUM | Lib/threading.py | 1445 | # Create a local namespace to ensure that variables remain alive | COMMENT |
| MEDIUM | Lib/threading.py | 1689 | # Create the main thread object, | COMMENT |
| 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 | 326 | # The following functions support actual printing of reports | COMMENT |
| MEDIUM | Lib/pstats.py | 557 | """This class provides a generic function for comparing any two tuples. | STRING |
| MEDIUM | Lib/pstats.py | 600 | # The following functions combine statistics for pairs functions. | COMMENT |
| MEDIUM | Lib/pstats.py | 637 | # 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/cases_generator/py_metadata_generator.py | COMMENT |
| MEDIUM | Lib/annotationlib.py | 167 | # Create a new locals dict if necessary, | COMMENT |
| MEDIUM | Lib/_pydatetime.py | 495 | # This function is intended to validate datetimes, but because | 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 | 622 | # This method is for backward compatibility only. | COMMENT |
| MEDIUM | Lib/ast.py | 628 | # The following code is for backward compatibility. | COMMENT |
| MEDIUM | Lib/doctest.py | 153 | # Create a new flag unless `name` is already known. | STRING |
| MEDIUM | Lib/doctest.py | 676 | # Create an Example, and add it to the list. | STRING |
| MEDIUM | Lib/doctest.py | 1299 | # 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 | 381 | # This function is used instead of exposing Field creation directly, | COMMENT |
| MEDIUM | Lib/dataclasses.py | 530 | # Create an __annotate__ function for a dataclass | COMMENT |
| MEDIUM | Lib/dataclasses.py | 1203 | # Create a comparison function. If the fields in the object are | COMMENT |
| MEDIUM | Lib/dataclasses.py | 1229 | # Create a class doc-string lazily via descriptor protocol | COMMENT |
| MEDIUM | Lib/dataclasses.py | 1350 | # Create a new dict for our new class. | COMMENT |
| MEDIUM | Lib/dataclasses.py | 1823 | # Create the new object, which calls __init__() and | COMMENT |
| 237 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | PC/layout/main.py | 24 | CODE | |
| LOW | PC/layout/main.py | 25 | CODE | |
| LOW | PC/layout/main.py | 26 | CODE | |
| LOW | PC/layout/main.py | 27 | CODE | |
| LOW | PC/layout/main.py | 28 | CODE | |
| LOW | PC/layout/main.py | 29 | CODE | |
| LOW | PC/layout/main.py | 30 | CODE | |
| LOW | PC/layout/main.py | 31 | CODE | |
| LOW | PC/layout/main.py | 32 | CODE | |
| LOW | PC/layout/main.py | 33 | CODE | |
| LOW | PC/layout/main.py | 34 | CODE | |
| LOW | PC/layout/__main__.py | 4 | CODE | |
| LOW | PC/layout/support/pymanager.py | 1 | CODE | |
| LOW | PC/layout/support/arch.py | 1 | CODE | |
| LOW | PC/layout/support/arch.py | 2 | CODE | |
| LOW | PC/layout/support/arch.py | 3 | CODE | |
| LOW | PC/layout/support/appxmanifest.py | 16 | CODE | |
| LOW | PC/layout/support/props.py | 7 | CODE | |
| LOW | PC/layout/support/pip.py | 14 | CODE | |
| LOW | PC/layout/support/nuspec.py | 8 | CODE | |
| LOW | Misc/mypy/make_symlinks.py | 2 | CODE | |
| LOW | Platforms/Apple/__main__.py | 36 | CODE | |
| LOW | Tools/ssl/multissltests.py | 25 | CODE | |
| LOW | Tools/c-analyzer/c_parser/__init__.py | 76 | CODE | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 264 | CODE | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 264 | CODE | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 271 | CODE | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 271 | CODE | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/common.py | 9 | CODE | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/common.py | 9 | CODE | |
| LOW | Tools/unicode/genmap_korean.py | 9 | CODE | |
| LOW | Tools/unicode/genmap_schinese.py | 10 | CODE | |
| LOW | Tools/unicode/genmap_tchinese.py | 8 | CODE | |
| LOW | Tools/unicode/genmap_japanese.py | 9 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/cases_generator/parser.py | 1 | CODE | |
| LOW | Tools/scripts/sortperf.py | 21 | CODE | |
| LOW | Tools/scripts/summarize_stats.py | 5 | CODE | |
| LOW | Tools/clinic/libclinic/dsl_parser.py | 1 | CODE | |
| LOW | Tools/clinic/libclinic/converter.py | 1 | CODE | |
| LOW | Tools/clinic/libclinic/__init__.py | 3 | CODE | |
| LOW | Tools/clinic/libclinic/__init__.py | 3 | CODE | |
| LOW | Tools/clinic/libclinic/__init__.py | 3 | CODE | |
| LOW | Tools/clinic/libclinic/__init__.py | 8 | CODE | |
| LOW | Tools/clinic/libclinic/__init__.py | 8 | CODE | |
| LOW | Tools/clinic/libclinic/__init__.py | 8 | CODE | |
| LOW | Tools/clinic/libclinic/__init__.py | 8 | CODE | |
| 721 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | PC/_testconsole.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} | STRING |
| HIGH | PC/msvcrtmodule.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} | STRING |
| HIGH | Modules/overlapped.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} | STRING |
| HIGH | Modules/_multiprocessing/multiprocessing.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} | STRING |
| HIGH | Tools/c-analyzer/distutils/_msvccompiler.py | 0 | return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program s | STRING |
| HIGH | Tools/c-analyzer/distutils/msvc9compiler.py | 0 | return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program s | STRING |
| HIGH | Tools/c-analyzer/distutils/msvccompiler.py | 0 | return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program s | STRING |
| HIGH | Tools/c-analyzer/distutils/_msvccompiler.py | 0 | concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class. | STRING |
| HIGH | Tools/c-analyzer/distutils/msvc9compiler.py | 0 | concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class. | STRING |
| HIGH | Tools/c-analyzer/distutils/msvccompiler.py | 0 | concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class. | STRING |
| HIGH | Tools/c-analyzer/distutils/msvc9compiler.py | 0 | return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.v | STRING |
| HIGH | Tools/c-analyzer/distutils/msvccompiler.py | 0 | return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.v | STRING |
| HIGH | Lib/ctypes/util.py | 0 | return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.v | STRING |
| HIGH | Tools/clinic/libclinic/converters.py | 0 | {paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}} | STRING |
| HIGH | Modules/resource.c | 0 | {paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}} | STRING |
| HIGH | Modules/_posixsubprocess.c | 0 | {paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}} | STRING |
| HIGH | Modules/posixmodule.c | 0 | {paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}} | 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/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_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_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/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/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/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 | Lib/test/test_external_inspection.py | 0 | decorator to skip a test if subinterpreters are not supported. | 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_capi/test_misc.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_profiling/test_heatmap.py | 0 | mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, e | STRING |
| HIGH | …ling/test_sampling_profiler/_live_collector_helpers.py | 0 | mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, e | STRING |
| HIGH | Lib/test/test_profiling/test_sampling_profiler/mocks.py | 0 | mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, e | 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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | PC/layout/support/catalog.py | 9 | __all__ = ["PYTHON_CAT_NAME", "PYTHON_CDF_NAME"] | CODE |
| LOW | PC/layout/support/options.py | 9 | __all__ = [] | CODE |
| LOW | PC/layout/support/logging.py | 11 | __all__ = [] | CODE |
| LOW | PC/layout/support/appxmanifest.py | 18 | __all__ = ["get_appx_layout"] | CODE |
| LOW | PC/layout/support/props.py | 9 | __all__ = ["get_props_layout"] | CODE |
| LOW | PC/layout/support/pip.py | 16 | __all__ = ["extract_pip_files", "get_pip_layout"] | CODE |
| LOW | PC/layout/support/nuspec.py | 10 | __all__ = ["get_nuspec_layout"] | CODE |
| LOW | Misc/mypy/token.py | 4 | __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF', | CODE |
| LOW | Misc/mypy/_colorize.py | 638 | def set_theme(t: Theme) -> None: | CODE |
| LOW | Tools/ssl/make_ssl_data.py | 80 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/c_parser/__main__.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/c_parser/preprocessor/common.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__main__.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/cpython/_capi.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/cpython/__main__.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/c_common/scriptutil.py | 92 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/c_common/strutil.py | 4 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/c-analyzer/c_analyzer/__main__.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | Tools/cases_generator/cwriter.py | 25 | def set_position(self, tkn: Token) -> None: | CODE |
| LOW | Tools/cases_generator/lexer.py | 239 | __all__ = [] | CODE |
| LOW | Tools/clinic/libclinic/converter.py | 548 | def set_template_dict(self, template_dict: TemplateDict) -> None: | STRING |
| LOW | Tools/clinic/libclinic/__init__.py | 42 | __all__ = [ | CODE |
| LOW | Tools/clinic/libclinic/cpp.py | 9 | __all__ = ["Monitor"] | CODE |
| LOW | Tools/clinic/libclinic/converters.py | 157 | def set_template_dict(self, template_dict: TemplateDict) -> None: | STRING |
| LOW | Tools/clinic/libclinic/converters.py | 1233 | def set_template_dict(self, template_dict: TemplateDict) -> None: | STRING |
| LOW | Tools/peg_generator/pegen/keywordgen.py | 24 | __all__ = ["iskeyword", "issoftkeyword", "kwlist", "softkwlist"] | CODE |
| LOW | Tools/peg_generator/pegen/c_generator.py | 506 | def _setup_keywords(self) -> None: | STRING |
| LOW⚡ | Tools/peg_generator/pegen/c_generator.py | 527 | def _setup_soft_keywords(self) -> None: | STRING |
| LOW⚡ | Tools/peg_generator/pegen/c_generator.py | 536 | def _set_up_token_start_metadata_extraction(self) -> None: | STRING |
| LOW⚡ | Tools/peg_generator/pegen/c_generator.py | 547 | def _set_up_token_end_metadata_extraction(self) -> None: | STRING |
| LOW | Tools/peg_generator/pegen/c_generator.py | 564 | def _set_up_rule_memoization(self, node: Rule, result_type: str) -> None: | STRING |
| LOW⚡ | Parser/asdl.py | 26 | __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 | 15 | __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 | 12 | __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 | 23 | __all__ = ["check", "NannyNag", "process_tokens"] | CODE |
| LOW | Lib/cProfile.py | 9 | __all__ = ["run", "runctx", "Profile"] | CODE |
| LOW | Lib/zipimport.py | 21 | __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 | 10 | __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 | 82 | __all__ = [ | CODE |
| LOW | Lib/weakref.py | 30 | __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs", | CODE |
| 227 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 280 | """Run all benchmarks and return comprehensive results.""" | STRING |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 388 | """Run comprehensive antagonistic test suite.""" | STRING |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 445 | """Run comprehensive test suite across all sizes and types.""" | STRING |
| LOW | Tools/c-analyzer/distutils/unixccompiler.py | 23 | # * optimization/debug/warning flags; we just use whatever's in Python's | COMMENT |
| LOW | Tools/unicode/dawg.py | 347 | # we don't know position of the edge yet, just use something big as | COMMENT |
| LOW | Tools/cases_generator/generators_common.py | 53 | # Not relative to root, just return original path. | COMMENT |
| MEDIUM | Tools/inspection/benchmark_external_inspection.py | 312 | """Print comprehensive benchmark results""" | STRING |
| LOW | Tools/patchcheck/patchcheck.py | 142 | # We just use an existence check here as: | COMMENT |
| LOW | Tools/peg_generator/pegen/build.py | 58 | # To further add to the shared builds fun on Unix, we can't just add | COMMENT |
| MEDIUM | Include/internal/pycore_object.h | 795 | // Essentially _PyObject_GET_WEAKREFS_LISTPTR_FROM_OFFSET(): | COMMENT |
| MEDIUM | Objects/mimalloc/prim/osx/alloc-override-zone.c | 400 | // it seems less robust than using interpose. | COMMENT |
| LOW | Mac/BuildScript/build-installer.py | 1186 | # by child processes from their parents. We used to just set | STRING |
| MEDIUM | Mac/BuildScript/build-installer.py | 1340 | # TODO: make this more robust! test_sysconfig_module of | STRING |
| LOW | Lib/shutil.py | 1634 | # 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 | 1427 | # Handle case where no user markup is to be added, just return line of | STRING |
| LOW | Lib/difflib.py | 1816 | # if blank line or context separator, just add it to the output list | COMMENT |
| LOW | Lib/difflib.py | 1821 | # 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 | 3366 | # No logic applied whatsoever, just pass the raw reply back. | COMMENT |
| LOW | Lib/threading.py | 293 | # these override the default implementations (which just call | COMMENT |
| MEDIUM | Lib/turtle.py | 710 | """Set focus on canvas (in order to collect key-events) | STRING |
| MEDIUM | Lib/turtle.py | 1467 | """Set focus on TurtleScreen (in order to collect key-events) | STRING |
| MEDIUM | Lib/doctest.py | 1777 | # in conjunction with the ELLIPSIS flag. | STRING |
| LOW | Lib/argparse.py | 2480 | # for regular arguments, just add them back into the list | STRING |
| LOW | Lib/dataclasses.py | 574 | # via object.__setattr__. Otherwise, just use a simple | COMMENT |
| LOW | Lib/dataclasses.py | 630 | # just use the class attribute that contains the default. | COMMENT |
| LOW | Lib/graphlib.py | 287 | # successors, so when backtracking to a shallower level we can just call | COMMENT |
| LOW | Lib/tarfile.py | 1574 | # Normally, we could just use "utf-8" as the encoding and "strict" | COMMENT |
| LOW | Lib/_pydecimal.py | 3315 | # 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 | 445 | # 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 | 1194 | # 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 | 517 | # Test robust handling of non-LZMA data following the compressed stream(s). | COMMENT |
| MEDIUM | Lib/test/test_decimal.py | 5888 | """The C Context docstrings use 'x' in order to prevent confusion | STRING |
| MEDIUM | Lib/test/test_grammar.py | 1970 | # This is not intended to be a comprehensive test, rather just to be few | STRING |
| MEDIUM | Lib/test/test_bytes.py | 2356 | # comprehensive for things like partition, etc. | COMMENT |
| LOW | Lib/test/test_py_compile.py | 287 | # assert_python_* helpers don't return proc object. We'll just use | COMMENT |
| LOW | Lib/test/test_subprocess.py | 1487 | # Subsequent invocations should just return the returncode | STRING |
| LOW | Lib/test/test_subprocess.py | 1493 | # 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_startfile.py | 29 | # means the test harness provided directory isn't a safe option. | COMMENT |
| MEDIUM | Lib/test/test_signal.py | 1396 | # a signal is ignored due to the aforementioned | STRING |
| MEDIUM | Lib/test/test_socketserver.py | 54 | # 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 |
| LOW | Lib/test/test_long.py | 1240 | # nonnegative second argument: round(x, n) should just return x | COMMENT |
| LOW | Lib/test/test_argparse.py | 273 | # redirected, simply call the function and let the enclosing function | COMMENT |
| LOW | Lib/test/test_types.py | 522 | # 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_gdb/test_pretty_print.py | 117 | # We cannot simply call locale.getpreferredencoding() here, | COMMENT |
| MEDIUM | Lib/test/test_os/test_os.py | 2519 | # We spawn a new process to make the test more robust (if getrlimit() | COMMENT |
| LOW | Lib/test/test_pyrepl/test_windows_console.py | 626 | # because for simplicity we just use | COMMENT |
| LOW | Lib/test/test_unittest/test_loader.py | 706 | # 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 |
| 30 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Tools/picklebench/memory_dos_impact.py | 508 | Extract JSON data from subprocess output. Skips any print statements before the JSON output and parses the JSON | STRING |
| HIGH | Lib/ipaddress.py | 26 | 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 | 55 | 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 | 84 | 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 | 118 | Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat | STRING |
| HIGH | Lib/ipaddress.py | 302 | Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), | STRING |
| HIGH | Lib/ipaddress.py | 438 | Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi | STRING |
| HIGH | Lib/ipaddress.py | 468 | Return prefix length from a numeric string Args: prefixlen_str: The string to be converted | STRING |
| HIGH | Lib/ipaddress.py | 493 | Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver | STRING |
| HIGH | Lib/ipaddress.py | 789 | Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') | STRING |
| HIGH | Lib/ipaddress.py | 864 | Compare two IP objects. This is only concerned about the comparison of the integer representation of th | STRING |
| HIGH | Lib/ipaddress.py | 922 | 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 | 975 | The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi | STRING |
| HIGH | Lib/ipaddress.py | 1222 | Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. | STRING |
| HIGH | Lib/ipaddress.py | 1248 | Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R | STRING |
| HIGH | Lib/ipaddress.py | 1691 | Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: | STRING |
| HIGH | Lib/ipaddress.py | 1804 | Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. | STRING |
| HIGH | Lib/ipaddress.py | 1878 | 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 | 69 | Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: | STRING |
| HIGH | Lib/test/test_external_inspection.py | 85 | Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected | STRING |
| HIGH | Lib/test/test_external_inspection.py | 127 | Wait for N occurrences of a signal pattern. Args: sock: Connected socket to read from signal_p | STRING |
| HIGH | …/test/test_profiling/test_sampling_profiler/helpers.py | 42 | Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected | STRING |
| HIGH | Lib/profiling/sampling/_sync_coordinator.py | 39 | Validate and parse command line arguments. Args: args: Command line arguments including script name | 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 | 611 | 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 | 933 | 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 | Tools/c-analyzer/c_common/scriptutil.py | 26 | # Check if "installed". | COMMENT |
| LOW | Tools/msi/csv_to_wxs.py | 112 | # Check if the file matches. If so, we don't want to touch it so | COMMENT |
| LOW | Tools/cases_generator/stack.py | 9 | # Set this to true for voluminous output showing state of stack and locals | COMMENT |
| LOW | Tools/inspection/benchmark_external_inspection.py | 458 | # Check if it's still running | STRING |
| LOW | Tools/inspection/benchmark_external_inspection.py | 539 | # Print results | STRING |
| LOW | Tools/peg_generator/pegen/grammar.py | 30 | # Check if there are repeated rules in "rules" | COMMENT |
| LOW | PCbuild/get_external.py | 134 | # Check if the dependency already exists in externals/ directory | COMMENT |
| LOW | Lib/dis.py | 589 | # 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 | 307 | # 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/hashlib.py | 142 | # Check if the context security policy blocks the digest or not | STRING |
| LOW | Lib/traceback.py | 1516 | # Check if it works | COMMENT |
| LOW | Lib/traceback.py | 1852 | # Check if attr_name is a descriptor - if so, skip it | COMMENT |
| LOW⚡ | Lib/types.py | 316 | # Check if 'func' is a coroutine function. | COMMENT |
| LOW⚡ | Lib/types.py | 321 | # Check if 'func' is a generator function. | COMMENT |
| LOW | Lib/pdb.py | 231 | # Open the file each time because the file may be modified | COMMENT |
| LOW | Lib/pdb.py | 2998 | # Check if the interpreter is finalizing every quarter of a second. | COMMENT |
| LOW | Lib/poplib.py | 232 | # Check if the response has enough elements | COMMENT |
| LOW | Lib/plistlib.py | 676 | # Write file header | COMMENT |
| LOW | Lib/_py_warnings.py | 468 | # Check if message is already a Warning object | COMMENT |
| LOW | Lib/_py_warnings.py | 622 | # Print message and context | COMMENT |
| LOW | Lib/_osx_support.py | 413 | # 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 | 1830 | # Check if we should use diff. | STRING |
| LOW | Lib/doctest.py | 2227 | # 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 | 1266 | # Check if one of the fields contains surrogate characters and thereby | COMMENT |
| LOW | Lib/tarfile.py | 1551 | # Check if the pax header contains a hdrcharset field. This tells us | COMMENT |
| LOW | Lib/typing.py | 1279 | # Check if any base that occurs after us in `bases` is either itself a | COMMENT |
| LOW | Lib/typing.py | 2113 | # Check if the members appears in the class dictionary... | COMMENT |
| LOW | Lib/tokenize.py | 390 | # Check if the line matches the encoding. | COMMENT |
| LOW | Lib/ctypes/util.py | 257 | # Check if the given file is an elf file: gcc can report | COMMENT |
| LOW | Lib/ctypes/util.py | 430 | # Check if the given file is an elf file: gcc can report | COMMENT |
| LOW | Lib/ctypes/__init__.py | 144 | # Check if sizeof(ctypes_type) against struct.calcsize. This | COMMENT |
| LOW | Lib/unittest/mock.py | 454 | # Check if spec is an async object or function | COMMENT |
| LOW | Lib/test/test_external_inspection.py | 106 | # Check if all expected signals are in buffer | COMMENT |
| LOW | Lib/test/test__interpchannels.py | 1412 | # Set this to True to avoid creating interpreters, e.g. when | STRING |
| LOW | Lib/test/pythoninfo.py | 1257 | # Check if the process in running in a container | COMMENT |
| LOW | Lib/test/test_gzip.py | 204 | # Open the file for writing, then close it. | STRING |
| LOW | Lib/test/test_logging.py | 6345 | # Set level to NOTSET and ensure caches are empty | COMMENT |
| LOW | Lib/test/test_pdb.py | 3667 | # Check if the custom prefix appeared in the output | COMMENT |
| LOW | Lib/test/test_difflib.py | 260 | # Check if the problem described in patch #1413711 exists. | COMMENT |
| LOW | Lib/test/test_type_cache.py | 33 | # Check if global version tag has already overflowed. | COMMENT |
| LOW | Lib/test/test_typing.py | 5098 | # Check if a dictionary conforms to Dict type | COMMENT |
| LOW | Lib/test/test_typing.py | 5113 | # Check if an instance conforms to the generic class | COMMENT |
| LOW | Lib/test/test_typing.py | 5125 | # Check if list conforms to a List subclass | COMMENT |
| LOW | Lib/test/test_remote_pdb.py | 980 | # Add commands to the queue | COMMENT |
| LOW | Lib/test/test_remote_pdb.py | 1005 | # Check if prompt was sent to client | COMMENT |
| LOW | Lib/test/test_remote_pdb.py | 1161 | # Check if we got the expected output | COMMENT |
| LOW | Lib/test/test_http_cookies.py | 104 | # Check if the cookie is loaded correctly | COMMENT |
| LOW | Lib/test/test_compile.py | 1395 | # Check if bytecode containing jumps that simply point to the next line | STRING |
| LOW | Lib/test/test_dtrace.py | 314 | # Check if bpftrace is available and can attach to USDT probes | COMMENT |
| LOW | Lib/test/test_annotationlib.py | 2351 | # Check if the passed in mutable arguments equal the originals | COMMENT |
| LOW | Lib/test/test_codecs.py | 2998 | # Check if the BOM is written only once | COMMENT |
| 52 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | Lib/test/test_urllib2net.py | 362 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) | CODE |
| CRITICAL | Lib/test/test_urllib2net.py | 373 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) | CODE |
| CRITICAL | Lib/test/test_urllib2net.py | 385 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) | CODE |
| CRITICAL | Lib/test/test_urllib2net.py | 392 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) | CODE |
| CRITICAL⚡ | Lib/test/test_lazy_import/__init__.py | 468 | g = test.test_lazy_import.data.pkg.c.get_globals() | 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 |
|---|---|---|---|---|
| LOW | Lib/test/test_xml_etree.py | 2030 | <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback> | CODE |
| LOW | Lib/test/test_xml_etree.py | 2196 | ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n' | STRING |
| LOW⚡ | Lib/test/test_curses.py | 1111 | self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') | CODE |
| LOW⚡ | Lib/test/test_curses.py | 1114 | self.assertEqual(win.instr(3, 0), b'dolor sit amet,') | CODE |
| LOW⚡ | Lib/test/test_curses.py | 1120 | self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') | CODE |
| LOW⚡ | Lib/test/test_curses.py | 1130 | self.assertEqual(win.instr(0, 0), b'dolor sit amet,') | CODE |
| LOW | Lib/test/test_curses.py | 1070 | self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,') | CODE |
| LOW | Lib/test/test_curses.py | 1195 | win.addstr(2, 0, 'Lorem ipsum') | CODE |
| LOW | Lib/test/test_curses.py | 1196 | win.addstr(3, 0, 'dolor sit amet') | CODE |
| LOW | Lib/test/test_curses.py | 1230 | win.addstr(0, 0, 'Lorem ipsum') | CODE |
| LOW | Lib/test/test_curses.py | 1357 | win.addstr(2, 1, 'Lorem ipsum') | CODE |
| LOW | Lib/test/test_curses.py | 1365 | self.assertEqual(win.instr(2, 0), b' Lorem ipsum') | CODE |
| LOW | Lib/test/test_curses.py | 2791 | 'Lorem ipsum', | CODE |
| LOW | Lib/test/test_curses.py | 2792 | 'dolor sit amet,', | CODE |
| LOW | Lib/test/test_imaplib.py | 1929 | typ, data = client.setacl('INBOX', 'John Doe', 'a b') | CODE |
| LOW | Lib/test/test_imaplib.py | 1931 | self.assertEqual(server.args, ['INBOX', '"John Doe"', '"a b"']) | CODE |
| LOW | Lib/test/test_imaplib.py | 1942 | typ, data = client.deleteacl('New folder', 'John Doe') | CODE |
| LOW | Lib/test/test_imaplib.py | 1944 | self.assertEqual(server.args, ['"New folder"', '"John Doe"']) | CODE |
| LOW | Lib/test/test_ssl.py | 545 | ('email', 'null@python.org\x00user@example.org'), | CODE |
| LOW | Lib/test/test_ssl.py | 552 | ('email', 'null@python.org\x00user@example.org'), | CODE |
| LOW | Lib/test/test_ssl.py | 566 | ('email', 'user@example.org'), | CODE |
| LOW⚡ | Lib/test/test_urlparse.py | 450 | self.assertEqual(urlparse('mailto:1337@example.org'), | CODE |
| LOW⚡ | Lib/test/test_urlparse.py | 451 | ('mailto', '', '1337@example.org', '', '', '')) | CODE |
| LOW⚡ | Lib/test/test_urlparse.py | 452 | self.assertEqual(urlparse('mailto:1337@example.org', missing_as_none=True), | CODE |
| LOW⚡ | Lib/test/test_urlparse.py | 453 | ('mailto', None, '1337@example.org', None, None, None)) | CODE |
| LOW | Lib/test/test_pickletools.py | 583 | data = ('fake_data',) | STRING |
| LOW | Lib/test/test_pickletools.py | 587 | 11: \x8c SHORT_BINUNICODE 'fake_data' | CODE |
| LOW | Lib/test/test_pickletools.py | 608 | data = ('fake_data',) | STRING |
| LOW | Lib/test/test_pickletools.py | 612 | 11: \x8c SHORT_BINUNICODE 'fake_data' | CODE |
| LOW | Lib/test/test_pickletools.py | 624 | data = ('fake_data',) | STRING |
| LOW | Lib/test/test_pickletools.py | 628 | 11: \x8c SHORT_BINUNICODE 'fake_data' | CODE |
| LOW | Lib/test/test_pickletools.py | 640 | data = ('fake_data',) | STRING |
| LOW | Lib/test/test_pickletools.py | 644 | 11: \x8c SHORT_BINUNICODE 'fake_data' Push a Python Unicode string object. | CODE |
| LOW⚡ | Lib/test/test_pickletools.py | 656 | data = ('fake_data',) | STRING |
| LOW⚡ | Lib/test/test_pickletools.py | 661 | 11: \x8c SHORT_BINUNICODE 'fake_data' | CODE |
| LOW⚡ | Lib/test/test_pickletools.py | 670 | 11: \x8c SHORT_BINUNICODE 'fake_data' | 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/test_ttk/test_widgets.py | 338 | 'placeholder', 'placeholderforeground', | CODE |
| LOW | Lib/test/test_ttk/test_widgets.py | 469 | 'justify', 'placeholder', 'placeholderforeground', 'postcommand', | CODE |
| LOW | Lib/test/test_ttk/test_widgets.py | 1263 | 'placeholder', 'placeholderforeground', | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 69 | text.insert('1.0', 'Lorem ipsum') | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 70 | self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n') | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 76 | self.assertEqual(text.get('1.0', 'end'), '*** Lorem ipsum\n') | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 79 | self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n') | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 179 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 179 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 742 | 'Lorem ipsum dolor sit amet,\n' | CODE |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 742 | 'Lorem ipsum dolor sit amet,\n' | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 43 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 43 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 56 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 56 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 97 | text.insert('1.0', 'Lorem ipsum') | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 109 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 109 | text.insert('1.0', 'Lorem ipsum\ndolor sit amet') | CODE |
| LOW | Lib/test/test_tkinter/test_text.py | 131 | text.insert('1.0', 'Lorem ipsum') | CODE |
| 38 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tools/c-analyzer/c_parser/parser/_func_body.py | 49 | CODE | |
| MEDIUM | Tools/c-analyzer/c_parser/parser/_func_body.py | 50 | CODE | |
| MEDIUM | Tools/c-analyzer/cpython/_analyzer.py | 121 | CODE | |
| MEDIUM | Tools/c-analyzer/cpython/_analyzer.py | 133 | CODE | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 119 | CODE | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 121 | CODE | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 124 | CODE | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 125 | CODE | |
| MEDIUM | Lib/test/test__interpchannels.py | 611 | CODE | |
| MEDIUM | Lib/test/test__interpchannels.py | 613 | CODE | |
| MEDIUM | Lib/test/test_fractions.py | 175 | CODE | |
| MEDIUM | Lib/test/test_threading.py | 2488 | CODE | |
| MEDIUM | Lib/test/test_itertools.py | 2440 | CODE | |
| MEDIUM | Lib/test/test_array.py | 1134 | CODE | |
| MEDIUM | Lib/test/test_generators.py | 577 | CODE | |
| MEDIUM | Lib/test/test_generators.py | 588 | CODE | |
| MEDIUM | Lib/test/test_exceptions.py | 1836 | CODE | |
| MEDIUM | Lib/test/test_compile.py | 905 | CODE | |
| MEDIUM | Lib/test/test_set.py | 21 | CODE | |
| MEDIUM | Lib/test/test_set.py | 1109 | CODE | |
| MEDIUM | Lib/test/test_deque.py | 16 | CODE | |
| MEDIUM | Lib/test/test_sys_settrace.py | 2762 | 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 | 2046 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 2067 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 2091 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 837 | CODE | |
| MEDIUM | Lib/test/test_asyncgen.py | 911 | CODE | |
| MEDIUM | Lib/test/test_builtin.py | 1429 | 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 | Lib/test/test_capi/test_misc.py | 1624 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | PC/layout/support/pymanager.py | 259 | CODE | |
| LOW | Tools/gdb/libpython.py | 887 | CODE | |
| LOW | Tools/gdb/libpython.py | 1440 | CODE | |
| LOW | Tools/gdb/libpython.py | 1502 | CODE | |
| LOW | Tools/c-analyzer/cpython/__main__.py | 334 | CODE | |
| LOW | Tools/c-analyzer/c_analyzer/__main__.py | 296 | CODE | |
| LOW | Mac/BuildScript/build-installer.py | 503 | CODE | |
| LOW | Lib/tempfile.py | 572 | CODE | |
| LOW | Lib/tempfile.py | 645 | CODE | |
| LOW | Lib/tempfile.py | 727 | CODE | |
| LOW | Lib/lzma.py | 280 | CODE | |
| LOW | Lib/trace.py | 391 | CODE | |
| LOW | Lib/dis.py | 86 | CODE | |
| LOW | Lib/dis.py | 916 | CODE | |
| LOW | Lib/textwrap.py | 112 | CODE | |
| LOW | Lib/functools.py | 635 | CODE | |
| LOW | Lib/subprocess.py | 985 | CODE | |
| LOW | Lib/pydoc.py | 1376 | CODE | |
| LOW | Lib/ftplib.py | 711 | CODE | |
| LOW | Lib/optparse.py | 1168 | CODE | |
| LOW | Lib/pdb.py | 499 | 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 | 1790 | CODE | |
| LOW | Lib/_pydatetime.py | 2084 | CODE | |
| LOW | Lib/tarfile.py | 1011 | CODE | |
| LOW | Lib/tarfile.py | 1780 | CODE | |
| LOW | Lib/ssl.py | 729 | CODE | |
| LOW | Lib/_pydecimal.py | 3872 | CODE | |
| LOW | Lib/unittest/main.py | 66 | CODE | |
| LOW | Lib/unittest/mock.py | 444 | CODE | |
| LOW | Lib/unittest/mock.py | 463 | CODE | |
| LOW | Lib/unittest/mock.py | 1152 | CODE | |
| LOW | Lib/test/test_pdb.py | 5073 | CODE | |
| LOW | Lib/test/test_faulthandler.py | 113 | CODE | |
| LOW | Lib/test/test_decimal.py | 4323 | CODE | |
| LOW | Lib/test/test_code.py | 850 | CODE | |
| LOW | Lib/test/test_remote_pdb.py | 82 | CODE | |
| LOW | Lib/test/mock_socket.py | 54 | CODE | |
| LOW | Lib/test/test_ssl.py | 278 | CODE | |
| LOW | Lib/test/test_ssl.py | 319 | CODE | |
| LOW | Lib/test/test_ssl.py | 2802 | CODE | |
| LOW | Lib/test/test_graphlib.py | 254 | CODE | |
| LOW | Lib/test/test_embed.py | 1033 | CODE | |
| LOW | Lib/test/test_regrtest.py | 654 | CODE | |
| LOW | Lib/test/test_inspect/test_inspect.py | 1355 | CODE | |
| LOW | Lib/test/test_zipfile/test_core.py | 898 | 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 | 1781 | CODE | |
| LOW | Lib/urllib/request.py | 1030 | CODE | |
| LOW | Lib/urllib/request.py | 1045 | CODE | |
| LOW | Lib/tkinter/__init__.py | 4401 | CODE | |
| LOW | Lib/tkinter/__init__.py | 4424 | CODE | |
| LOW | Lib/tkinter/ttk.py | 1636 | CODE | |
| LOW | Lib/tkinter/ttk.py | 1679 | CODE | |
| LOW | Lib/tkinter/ttk.py | 1705 | CODE | |
| LOW | Lib/tkinter/ttk.py | 1720 | CODE | |
| 27 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Lib/socketserver.py | 273 | def handle_request(self): | CODE |
| LOW | Lib/contextlib.py | 366 | def helper(*args, **kwds): | CODE |
| LOW | Lib/contextlib.py | 399 | def helper(*args, **kwds): | CODE |
| LOW | Lib/test/test_unparse.py | 927 | def test_function(self): | CODE |
| LOW | Lib/test/test_gc.py | 228 | def test_function(self): | CODE |
| LOW | Lib/test/test_logging.py | 2169 | def handle_request(self, request): | CODE |
| LOW | Lib/test/test_with.py | 45 | def helper(*args, **kwds): | CODE |
| LOW | Lib/test/test_marshal.py | 19 | def helper(self, sample, *extra): | CODE |
| LOW | Lib/test/test_pdb.py | 721 | def do_something(): | CODE |
| LOW | Lib/test/test_pdb.py | 53 | >>> def test_function(foo, bar): | STRING |
| LOW | Lib/test/test_pdb.py | 98 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 234 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 365 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 416 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 441 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 487 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 520 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 642 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 668 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 689 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 743 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 770 | 1 def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 816 | ... def do_something(): | STRING |
| LOW | Lib/test/test_pdb.py | 834 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 867 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 937 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1009 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1094 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1115 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1133 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1190 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1286 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1368 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1422 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1495 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1528 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1560 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1635 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1687 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1724 | 1 def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1754 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1824 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 1912 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2005 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2069 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2134 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2166 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2228 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2281 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2336 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2397 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2450 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2515 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2553 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2612 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2648 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2693 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2739 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2769 | >>> def test_function(): | STRING |
| LOW | Lib/test/test_pdb.py | 2805 | >>> def test_function(): | STRING |
| 45 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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/test/test_curses.py | 1937 | # range may be restricted, so we need to check if the limit is still | COMMENT |
| LOW | Lib/email/header.py | 399 | # Step 1: Normalize the chunks so that all runs of identical charsets | STRING |
| LOW⚡ | Modules/expat/refresh.sh | 22 | # Step 1: download and copy files | COMMENT |
| LOW⚡ | Modules/expat/refresh.sh | 26 | # Step 2: Pull files from the libexpat distribution | COMMENT |
| LOW⚡ | Modules/expat/refresh.sh | 60 | # Step 3: Add the namespacing include to expat_external.h | COMMENT |
| LOW⚡ | Modules/expat/refresh.sh | 70 | # Step 4: Skip the Windows rand_s entropy path in xmlparse.c when | COMMENT |
| LOW | Modules/_hacl/refresh.sh | 39 | # Step 1: copy files | COMMENT |
| LOW | Modules/_hacl/refresh.sh | 116 | # Step 2: some in-place modifications to keep things simple and minimal | COMMENT |
| LOW | Modules/_hacl/refresh.sh | 151 | # Step 3: trim whitespace (for the linter) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 |
| LOW⚡ | Modules/expat/refresh.sh | 22 | # Step 1: download and copy files | COMMENT |
| LOW⚡ | Modules/expat/refresh.sh | 26 | # Step 2: Pull files from the libexpat distribution | COMMENT |
| LOW⚡ | Modules/expat/refresh.sh | 60 | # Step 3: Add the namespacing include to expat_external.h | COMMENT |
| LOW⚡ | Modules/expat/refresh.sh | 70 | # Step 4: Skip the Windows rand_s entropy path in xmlparse.c when | COMMENT |
| LOW | Modules/_hacl/refresh.sh | 39 | # Step 1: copy files | COMMENT |
| LOW | Modules/_hacl/refresh.sh | 116 | # Step 2: some in-place modifications to keep things simple and minimal | COMMENT |
| LOW | Modules/_hacl/refresh.sh | 151 | # Step 3: trim whitespace (for the linter) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Include/internal/pycore_global_strings.h | 913 | /* End auto-generated code */ | COMMENT |
| HIGH | Include/internal/pycore_unicodeobject_generated.h | 3484 | /* End auto-generated code */ | COMMENT |
| HIGH | Include/internal/pycore_runtime_init_generated.h | 2441 | /* End auto-generated code */ | COMMENT |
| HIGH | Include/internal/pycore_global_objects_fini_generated.h | 2444 | /* End auto-generated code */ | COMMENT |
| HIGH | Lib/subprocess.py | 334 | # which is calling `CloseHandle` as requested in [1]), so there is nothing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/clinic/libclinic/block_parser.py | 179 | # make sure to recognize stop line even if it | STRING |
| LOW | Python/jit.c | 170 | // Do NOT ever leave the memory writable! Also, don't forget to flush the | COMMENT |
| LOW | Python/jit.c | 642 | // Compiles executor in-place. Don't forget to call _PyJIT_Free later! | COMMENT |
| MEDIUM | Python/hamt.c | 413 | Also it's worth noting that it would be possible to adapt the tree | CODE |
| LOW | Objects/exceptions.c | 37 | /* NOTE: If the exception class hierarchy changes, don't forget to update | 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 | 1729 | # make sure to always test gc.enable() | STRING |
| LOW | Lib/test/_test_multiprocessing.py | 1520 | q.join_thread() # make sure to join the feeder thread | CODE |
| MEDIUM | Lib/test/test_logging.py | 425 | # 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 |
| LOW | Lib/_pyrepl/fancycompleter.py | 177 | # sort the words now to make sure to return completions in | COMMENT |
| LOW | Modules/arraymodule.c | 724 | * Don't forget to update typecode_to_mformat_code() if you add a new | COMMENT |
| MEDIUM | Modules/xxsubtype.c | 106 | PyDoc_STR("an int variable for demonstration purposes")}, | CODE |
| MEDIUM | Modules/xxsubtype.c | 204 | PyDoc_STR("an int variable for demonstration purposes")}, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Lib/imaplib.py | 1519 | # 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 | Tools/msi/purge.py | 3 | # Usage: | COMMENT |
| LOW | Include/critical_section.h | 29 | // Example usage: | COMMENT |
| LOW | Include/pyport.h | 630 | // Usage example: | COMMENT |
| LOW | Include/internal/pycore_parking_lot.h | 53 | // Example usage: | COMMENT |
| LOW | Include/internal/pycore_parking_lot.h | 82 | // Example usage: | COMMENT |
| LOW⚡ | Lib/test/test_unittest/testmock/testmock.py | 600 | # Usage example | COMMENT |
| LOW | Lib/zipfile/__init__.py | 725 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Include/internal/pycore_object.h | 256 | // TODO: implement Py_DECREF specializations for Py_GIL_DISABLED build | COMMENT |
| LOW | Objects/genericaliasobject.c | 328 | if (PyType_Check(arg)) { // TODO: Add test | CODE |
| LOW | Objects/mimalloc/options.c | 500 | // TODO: implement ourselves to reduce dependencies on the C runtime | COMMENT |
| LOW | Lib/test/test_smtplib.py | 1285 | #TODO: add tests for correct AUTH method fallback now that the | COMMENT |
| LOW⚡ | Lib/test/test_tkinter/test_text.py | 737 | # TODO: Add test for elide=True | COMMENT |
| LOW | Lib/test/test_tkinter/test_text.py | 675 | # TODO: Add test for elide=True | COMMENT |