21325 matches across 20 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | PC/layout/support/appxmanifest.py | 382 | def disable_registry_virtualization(xml): |
| LOW | PC/layout/support/nuspec.py | 64 | def _get_nuspec_data_overrides(ns): |
| LOW | Platforms/Apple/__main__.py | 1045 | def print_called_process_error(e: subprocess.CalledProcessError) -> None: |
| LOW | Platforms/emscripten/__main__.py | 41 | def required_emscripten_version(): |
| LOW | Platforms/emscripten/__main__.py | 460 | def configure_emscripten_python(context, working_dir): |
| LOW | Platforms/emscripten/__main__.py | 644 | def add_cross_build_dir_option(subcommand): |
| LOW | Platforms/emscripten/web_example/server.py | 22 | class MyHTTPRequestHandler(server.SimpleHTTPRequestHandler): |
| LOW | Platforms/Android/__main__.py | 1041 | def print_called_process_error(e): |
| LOW | Tools/picklebench/memory_dos_impact.py | 509 | def _extract_json_from_output(output: str) -> Dict[str, Dict[str, Any]]: |
| LOW | Tools/picklebench/memory_dos_impact.py | 668 | def format_antagonistic_comparison( |
| LOW | Tools/gdb/libpython.py | 81 | def interp_frame_has_tlbc_index(): |
| LOW | Tools/gdb/libpython.py | 750 | def items_from_keys_and_values(keys, values): |
| LOW | Tools/gdb/libpython.py | 1283 | def print_traceback_until_shim(self, frame_index=None): |
| LOW | Tools/gdb/libpython.py | 1882 | def get_selected_python_frame(cls): |
| LOW | Tools/gdb/libpython.py | 1900 | def get_selected_bytecode_frame(cls): |
| LOW | Tools/c-analyzer/distutils/ccompiler.py | 299 | # def runtime_library_dir_option(self, dir): |
| LOW | Tools/c-analyzer/distutils/msvc9compiler.py | 190 | def normalize_and_reduce_paths(paths): |
| LOW | Tools/c-analyzer/distutils/msvccompiler.py | 181 | def normalize_and_reduce_paths(paths): |
| LOW | Tools/c-analyzer/cpython/_analyzer.py | 297 | def _has_other_supported_type(decl): |
| LOW | Tools/c-analyzer/c_common/scriptutil.py | 336 | def add_failure_filtering_cli(parser, pool, *, default=False): |
| LOW | Tools/c-analyzer/c_common/tables.py | 203 | def _normalize_table_file_props(header, sep): |
| LOW | Tools/cases_generator/opcode_metadata_generator.py | 82 | def emit_stack_effect_function( |
| LOW | Tools/cases_generator/opcode_metadata_generator.py | 99 | def generate_stack_effect_functions(analysis: Analysis, out: CWriter) -> None: |
| LOW | Tools/cases_generator/opcode_metadata_generator.py | 139 | def generate_instruction_formats(analysis: Analysis, out: CWriter) -> None: |
| LOW | Tools/cases_generator/analyzer.py | 769 | def escaping_call_in_simple_stmt(stmt: SimpleStmt, result: dict[SimpleStmt, EscapingCall]) -> None: |
| LOW | Tools/cases_generator/analyzer.py | 925 | def stmt_has_jump_on_unpredictable_path_body(stmts: list[Stmt] | None, branches_seen: int) -> tuple[bool, int]: |
| LOW | Tools/cases_generator/analyzer.py | 936 | def stmt_has_jump_on_unpredictable_path(stmt: Stmt, branches_seen: int) -> tuple[bool, int]: |
| LOW | Tools/cases_generator/analyzer.py | 1303 | def get_instruction_size_for_uop(instructions: dict[str, Instruction], uop: Uop) -> int | None: |
| LOW | Tools/cases_generator/record_function_generator.py | 71 | def get_instruction_record_names(inst: Instruction) -> list[str]: |
| LOW | Tools/cases_generator/record_function_generator.py | 113 | def get_record_consumer_layout( |
| LOW | Tools/cases_generator/record_function_generator.py | 142 | def get_record_transform_input(uop: Uop) -> str: |
| LOW | Tools/cases_generator/record_function_generator.py | 151 | def generate_record_transform_function(uop: Uop, out: CWriter) -> None: |
| LOW | Tools/cases_generator/record_function_generator.py | 169 | def generate_recorder_functions(filenames: list[str], analysis: Analysis, out: CWriter) -> None: |
| LOW | Tools/cases_generator/record_function_generator.py | 277 | def generate_record_transform_dispatcher( |
| LOW | Tools/cases_generator/generators_common.py | 382 | def stackref_close_specialized( |
| LOW | Tools/cases_generator/py_metadata_generator.py | 46 | def generate_specialized_opmap(analysis: Analysis, out: CWriter) -> None: |
| LOW | Tools/cases_generator/target_generator.py | 50 | def write_tailcall_dispatch_table(analysis: Analysis, out: CWriter) -> None: |
| LOW | Tools/cases_generator/optimizer_generator.py | 160 | def replace_opcode_if_evaluates_pure( |
| LOW | Tools/cases_generator/optimizer_generator.py | 444 | def generate_abstract_interpreter( |
| LOW | Tools/jit/example_trace_dump.py | 103 | def short_loop_with_side_exits(n): |
| LOW | Tools/jit/example_trace_dump.py | 137 | ["def long_loop_with_side_exits(n):"] |
| LOW | Tools/jit/_dwarf.py | 109 | def _parse_objdump_instructions(dump: str) -> list[tuple[int, str]]: |
| LOW | Tools/jit/_optimizers.py | 609 | def _fixup_small_constant_pair( |
| LOW | Tools/jit/_optimizers.py | 683 | def _fixup_large_constant_pair( |
| LOW | Tools/jit/_stencils.py | 260 | def convert_labels_to_relocations(self) -> None: |
| LOW | Tools/jit/_stencils.py | 403 | def _emit_global_offset_table(self) -> None: |
| LOW | Tools/scripts/var_access_benchmark.py | 75 | def read_classvar_from_instance(trials=trials, A=A): |
| LOW | Tools/scripts/sortperf.py | 58 | def list_sort_ascending_exchanged(size: int, rand: random.Random) -> list[float]: |
| LOW | Tools/scripts/sortperf.py | 68 | def list_sort_ascending_random(size: int, rand: random.Random) -> list[float]: |
| LOW | Tools/scripts/sortperf.py | 76 | def list_sort_ascending_one_percent(size: int, rand: random.Random) -> list[float]: |
| LOW | Tools/scripts/summarize_stats.py | 54 | def _load_metadata_from_source(): |
| LOW | Tools/scripts/summarize_stats.py | 271 | def get_specialization_success_failure(self, opcode: str) -> dict[str, int]: |
| LOW | Tools/scripts/summarize_stats.py | 280 | def get_specialization_failure_total(self, opcode: str) -> int: |
| LOW | Tools/scripts/summarize_stats.py | 283 | def get_specialization_failure_kinds(self, opcode: str) -> dict[str, int]: |
| LOW | Tools/scripts/summarize_stats.py | 205 | def get_total_execution_count(self) -> int: |
| LOW | Tools/scripts/summarize_stats.py | 251 | def get_specialization_counts(self, opcode: str) -> dict[str, int]: |
| LOW | Tools/scripts/summarize_stats.py | 324 | def get_specialized_total_counts(self) -> tuple[int, int, int]: |
| LOW | Tools/scripts/summarize_stats.py | 745 | def calc_execution_count_table(prefix: str) -> RowCalculator: |
| LOW | Tools/scripts/summarize_stats.py | 833 | def iter_pre_succ_pairs_tables(base_stats: Stats, head_stats: Stats | None = None): |
| LOW | Tools/scripts/summarize_stats.py | 882 | def calc_specialization_table(opcode: str) -> RowCalculator: |
| 12175 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | PC/venvlauncher.c | 21 | #define MS_WINDOWS |
| LOW | PC/zconf-ng.h | 61 | */ |
| LOW | PC/zconf-ng.h | 121 | #include <stddef.h> /* for wchar_t and NULL */ |
| LOW | PC/zconf-ng.h | 141 | # define Z_LFS64 |
| LOW | PC/zconf-ng.h | 161 | |
| LOW | PC/launcher2.c | 21 | #define MS_WINDOWS |
| LOW | PC/launcher2.c | 401 | // pointer and length into cmdline or a static string with the |
| LOW | PC/launcher2.c | 421 | // if true, treats 'tag' as a non-PEP 514 filter |
| LOW | PC/pyshellext.cpp | 1 | // Support back to Vista |
| LOW | PC/zbuild.h | 1 | #ifndef _ZBUILD_H |
| LOW | PC/zbuild.h | 21 | #ifdef __STDC_VERSION__ |
| LOW | PC/zbuild.h | 41 | |
| LOW | PC/zbuild.h | 61 | typedef __int64 ssize_t; |
| LOW | PC/zbuild.h | 81 | # define PREFIX2(x) ZLIB_ ## x |
| LOW | PC/zbuild.h | 121 | */ |
| LOW | PC/zbuild.h | 141 | # define ZSWAP16(q) _byteswap_ushort(q) |
| LOW | PC/zbuild.h | 161 | # define ZSWAP64(q) bswap64(q) |
| LOW | PC/zbuild.h | 181 | ((q & 0x000000FF00000000u) >> 8u) | \ |
| LOW | PC/zbuild.h | 201 | #elif defined(_MSC_VER) |
| LOW | PC/zbuild.h | 221 | #define PADSZ(bpos, pad) (((pad) - ((uintptr_t)(bpos) % (pad))) % (pad)) |
| LOW | PC/zbuild.h | 261 | # elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC) |
| LOW | PC/zbuild.h | 301 | void __asan_storeN(void *, long); |
| LOW | PC/pyconfig.h | 41 | would be ISO C conforming). Neither renaming is feasible, so |
| LOW | PC/pyconfig.h | 61 | #define HAVE_STRFTIME |
| LOW | PC/pyconfig.h | 81 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) |
| LOW | PC/pyconfig.h | 161 | #define _Py_COMPILER ("[Clang " __clang_version__ "] 64 bit (AMD64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]") |
| LOW | PC/pyconfig.h | 201 | #define _WIN32_WINNT Py_WINVER |
| LOW | PC/pyconfig.h | 221 | #if defined(_M_IX86) |
| LOW | PC/pyconfig.h | 301 | |
| LOW | PC/pyconfig.h | 321 | #ifdef MS_COREDLL |
| LOW | PC/pyconfig.h | 341 | # pragma comment(lib,"python316_d.lib") |
| LOW | PC/pyconfig.h | 361 | # define SIZEOF_OFF_T 4 |
| LOW | PC/pyconfig.h | 381 | # define ALIGNOF_SIZE_T 4 |
| 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. |
| LOW | PC/pyconfig.h | 741 | #define HAVE_GETHOSTBYNAME 1 |
| LOW | PC/msvcrtmodule.c | 21 | #include "malloc.h" |
| LOW | PC/_wmimodule.cpp | 1 | // |
| LOW | PC/python_uwp.cpp | 1 | /* Main program when embedded in a UWP application on Windows */ |
| LOW | PC/python_ver_rc.h | 1 | // Resource script for Python core DLL. |
| LOW | PC/python_ver_rc.h | 21 | #define PYTHON_VERSION PY_VERSION "\0" |
| LOW | PC/zconf.h | 21 | # define z_const const |
| LOW | PC/zconf.h | 61 | #endif |
| LOW | PC/zconf.h | 81 | */ |
| LOW | PC/zconf.h | 101 | #endif |
| LOW | PC/zconf.h | 161 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) |
| LOW | PC/zconf.h | 181 | # define SEEK_SET 0 /* Seek from beginning of file. */ |
| LOW | PC/clinic/msvcrtmodule.c.h | 721 | #endif /* !defined(MSVCRT_GETWCHE_METHODDEF) */ |
| LOW | PC/clinic/msvcrtmodule.c.h | 741 | #endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */ |
| LOW | PC/clinic/winreg.c.h | 1721 | |
| LOW | PC/clinic/winreg.c.h | 1741 | #define WINREG_HKEYTYPE___EXIT___METHODDEF |
| LOW | PC/clinic/winreg.c.h | 1761 | #define WINREG_DELETEKEY_METHODDEF |
| LOW | PC/clinic/winreg.c.h | 1781 | #define WINREG_EXPANDENVIRONMENTSTRINGS_METHODDEF |
| LOW | PC/clinic/winreg.c.h | 1801 | #define WINREG_QUERYINFOKEY_METHODDEF |
| LOW | PC/clinic/winreg.c.h | 1821 | #define WINREG_SETVALUEEX_METHODDEF |
| LOW | Misc/platform_triplet.c | 1 | /* Detect platform triplet from builtin defines |
| LOW | Misc/platform_triplet.c | 21 | # elif defined(__aarch64__) |
| LOW | Misc/platform_triplet.c | 41 | # define LIBC_X32 gnux32 |
| LOW | Misc/platform_triplet.c | 61 | # define LIBC_MIPS gnu |
| LOW | Misc/platform_triplet.c | 81 | # if defined(__SPE__) |
| LOW | Misc/platform_triplet.c | 101 | # define LIBC_LA muslf32 |
| 4174 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | Platforms/emscripten/prepare_external_wasm.py | 16 | bytes.push(parseInt(hex.substr(i, 2), 16)); |
| HIGH | Platforms/emscripten/__main__.py | 441 | f"source ~/.nvm/nvm.sh && nvm install {node_version}", |
| HIGH | Platforms/emscripten/__main__.py | 450 | f"source ~/.nvm/nvm.sh && nvm which {node_version}", |
| HIGH | Platforms/emscripten/__main__.py | 537 | elif which realpath > /dev/null 2>&1 && realpath --version > /dev/null 2>&1 && realpath --version | grep GNU |
| HIGH | Tools/unicode/genmap_schinese.py | 105 | print("Generating GB2312 && GBK encode map...") |
| HIGH | Tools/unicode/genmap_japanese.py | 180 | print("Generating JIS X 0208 && JIS X 0212 encode map...") |
| HIGH | Tools/cases_generator/opcode_metadata_generator.py | 350 | out.emit(f"if (pseudo < 256 || pseudo >= {256+table_size}) {{\n") |
| HIGH | Tools/cases_generator/tier1_generator.py | 272 | if reachable: # type: ignore[possibly-undefined] |
| HIGH | Tools/cases_generator/uop_metadata_generator.py | 128 | stack.pop(var, null) |
| HIGH | Tools/cases_generator/stack.py | 230 | self.push(Local.register(f"_stack_item_{i}")) |
| HIGH | Tools/cases_generator/stack.py | 291 | self.logical_sp = self.logical_sp.push(var.item) |
| HIGH | Tools/cases_generator/stack.py | 324 | var_offset = var_offset.push(var.item) |
| HIGH | Tools/cases_generator/stack.py | 421 | local = stack.pop(var, null) |
| HIGH | Tools/cases_generator/stack.py | 429 | stack.push(local) |
| HIGH | Tools/cases_generator/stack.py | 505 | f"Expected '{undefined}' to be defined before '{out.name}'" |
| HIGH | Tools/cases_generator/stack.py | 510 | self.stack.push(out) |
| HIGH | Tools/cases_generator/stack.py | 565 | offset = offset.push(ouput) |
| HIGH | Tools/cases_generator/stack.py | 567 | stack.push(var) |
| HIGH | Tools/cases_generator/stack.py | 644 | self.stack.push(out) |
| HIGH | Tools/cases_generator/stack.py | 714 | self.stack.push(output) |
| HIGH | Tools/cases_generator/stack.py | 742 | self.stack.push(output) |
| HIGH | Tools/cases_generator/tier2_generator.py | 55 | stack.pop(var, null) |
| HIGH | Tools/cases_generator/tier2_generator.py | 57 | stack.push(Local.undefined(var)) |
| HIGH | Tools/cases_generator/optimizer_generator.py | 117 | stack.pop(var, null) |
| HIGH | Tools/cases_generator/optimizer_generator.py | 123 | offset = offset.push(var) |
| HIGH | Tools/cases_generator/optimizer_generator.py | 126 | stack.push(local) |
| HIGH | Tools/cases_generator/optimizer_generator.py | 427 | for var in storage.inputs: # type: ignore[possibly-undefined] |
| HIGH | Tools/clinic/libclinic/clanguage.py | 195 | condition = f"kwnames && PyTuple_Size(kwnames) && {condition}" |
| HIGH | Tools/clinic/libclinic/clanguage.py | 197 | condition = f"kwnames && PyTuple_GET_SIZE(kwnames) && {condition}" |
| HIGH | Tools/clinic/libclinic/clanguage.py | 200 | condition = f"kwargs && PyDict_Size(kwargs) && {condition}" |
| HIGH | Tools/clinic/libclinic/clanguage.py | 202 | condition = f"kwargs && PyDict_GET_SIZE(kwargs) && {condition}" |
| HIGH | Tools/clinic/libclinic/parse_args.py | 405 | if (nargs || (kwnames && PyTuple_GET_SIZE(kwnames))) {{ |
| HIGH | Tools/clinic/libclinic/converters.py | 124 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 236 | if (ival == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 273 | if (ival == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 335 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 383 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 412 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 483 | if (ival == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 499 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 539 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 556 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 578 | if ({paramname} == -1 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 620 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 629 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 653 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/clinic/libclinic/converters.py | 662 | if ({paramname} == -1.0 && PyErr_Occurred()) {{{{ |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 399 | self.print("if (p->level++ == MAXSTACK || _Py_ReachedRecursionLimitWithMargin(PyThreadState_Get(), 1)) {") |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 537 | self.print("if (p->mark == p->fill && _PyPegen_fill_token(p) < 0) {") |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 586 | self.print("if (_raw == NULL || p->mark <= _resmark)") |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 660 | self.print("if (_n == 0 || p->error_indicator) {") |
| HIGH | Tools/peg_generator/pegen/c_generator.py | 742 | self.print("if ((_res == NULL || p->error_indicator) && PyErr_Occurred()) {") |
| HIGH | Parser/asdl_c.py | 659 | self.emit("if (tmp == NULL || tmp == Py_None) {", depth) |
| HIGH | Parser/asdl_c.py | 1336 | if (kwargs && PyDict_Update(payload, kwargs) < 0) { |
| HIGH | Parser/asdl_c.py | 1441 | if (i == 0 && length > 2) { |
| HIGH | Parser/asdl_c.py | 1758 | if (i == -1 && PyErr_Occurred()) |
| HIGH | Parser/asdl_c.py | 2124 | assert(0 <= mode && mode <= 2); |
| HIGH | Mac/BuildScript/build-installer.py | 288 | install='make TCL_LIBRARY=%(TCL_LIBRARY)s && make install TCL_LIBRARY=%(TCL_LIBRARY)s DESTDIR=%(DESTDIR)s' |
| 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 |
| HIGH | Mac/BuildScript/build-installer.py | 355 | install='make && make install DESTDIR=%s && cd %s/usr/local/lib && ln -fs ../../../Library/Frameworks/Pyth |
| 355 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | PC/layout/main.py | 129 | |
| LOW | PC/layout/main.py | 385 | |
| LOW | PC/layout/main.py | 459 | |
| LOW | PC/layout/support/constants.py | 45 | |
| LOW | PC/layout/support/appxmanifest.py | 334 | |
| LOW | PC/layout/support/filesets.py | 42 | |
| LOW | Platforms/Apple/__main__.py | 275 | |
| LOW | Platforms/Apple/__main__.py | 286 | |
| LOW | Platforms/Apple/__main__.py | 778 | |
| LOW | Platforms/Apple/testbed/__main__.py | 286 | |
| LOW | Platforms/emscripten/wasm_assets.py | 136 | |
| LOW | Platforms/Android/__main__.py | 459 | |
| LOW | Platforms/Android/__main__.py | 482 | |
| LOW | Platforms/Android/__main__.py | 764 | |
| LOW | Tools/picklebench/memory_dos_impact.py | 81 | |
| LOW | Tools/picklebench/memory_dos_impact.py | 668 | |
| LOW | Tools/picklebench/memory_dos_impact.py | 830 | |
| LOW | Tools/ssl/multissltests.py | 518 | |
| LOW | Tools/gdb/libpython.py | 674 | |
| LOW | Tools/gdb/libpython.py | 2071 | |
| LOW | Tools/gdb/libpython.py | 478 | |
| LOW | Tools/gdb/libpython.py | 1393 | |
| LOW | Tools/gdb/libpython.py | 1504 | |
| LOW | Tools/freeze/parsesetup.py | 48 | |
| LOW | Tools/freeze/makefreeze.py | 32 | |
| LOW | Tools/freeze/freeze.py | 111 | |
| LOW | Tools/freeze/checkextensions.py | 8 | |
| LOW | Tools/freeze/makeconfig.py | 9 | |
| LOW | Tools/freeze/test/freeze.py | 67 | |
| LOW | Tools/c-analyzer/table-file.py | 19 | |
| LOW | Tools/c-analyzer/table-file.py | 59 | |
| LOW | Tools/c-analyzer/distutils/_msvccompiler.py | 26 | |
| LOW | Tools/c-analyzer/distutils/ccompiler.py | 428 | |
| LOW | Tools/c-analyzer/distutils/msvc9compiler.py | 250 | |
| LOW | Tools/c-analyzer/distutils/util.py | 13 | |
| LOW | Tools/c-analyzer/distutils/util.py | 113 | |
| LOW | Tools/c-analyzer/distutils/cygwinccompiler.py | 57 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 365 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 724 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 47 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 77 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 163 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 265 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 327 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 523 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 640 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 664 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1175 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1403 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1498 | |
| LOW | Tools/c-analyzer/c_parser/info.py | 1606 | |
| LOW | Tools/c-analyzer/c_parser/__main__.py | 63 | |
| LOW | Tools/c-analyzer/c_parser/match.py | 61 | |
| LOW | Tools/c-analyzer/c_parser/match.py | 144 | |
| LOW | Tools/c-analyzer/c_parser/parser/_compound_decl_body.py | 51 | |
| LOW | Tools/c-analyzer/c_parser/parser/_common.py | 10 | |
| LOW | Tools/c-analyzer/c_parser/parser/__init__.py | 169 | |
| LOW | Tools/c-analyzer/c_parser/parser/_global.py | 56 | |
| LOW | Tools/c-analyzer/c_parser/parser/_func_body.py | 46 | |
| LOW | Tools/c-analyzer/c_parser/parser/_func_body.py | 190 | |
| 1474 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Tools/unicode/makeunicodedata.py | 43 | # -------------------- |
| MEDIUM | Tools/unicode/makeunicodedata.py | 171 | # -------------------------------------------------------------------- |
| MEDIUM | Tools/unicode/makeunicodedata.py | 494 | # -------------------------------------------------------------------- |
| MEDIUM | Tools/unicode/makeunicodedata.py | 707 | # -------------------------------------------------------------------- |
| MEDIUM | Tools/unicode/makeunicodedata.py | 1012 | # -------------------------------------------------------------------- |
| MEDIUM | Tools/scripts/sortperf.py | 28 | # =============== |
| MEDIUM | Tools/scripts/sortperf.py | 30 | # =============== |
| MEDIUM | Parser/asdl.py | 1 | #------------------------------------------------------------------------------- |
| MEDIUM | Parser/asdl.py | 21 | #------------------------------------------------------------------------------- |
| MEDIUM | Lib/heapq.py | 412 | # ============================================== |
| MEDIUM | Lib/heapq.py | 442 | # ----------------------------------------------- |
| MEDIUM | Lib/heapq.py | 462 | # ---------------------- |
| MEDIUM | Lib/heapq.py | 469 | # ---------------------- |
| MEDIUM | Lib/numbers.py | 50 | ## ---------------- |
| MEDIUM | Lib/random.py | 203 | ## ------------------------------------------------------- |
| MEDIUM | Lib/random.py | 277 | ## -------------------------------------------------------- |
| MEDIUM | Lib/random.py | 889 | ## ------------------------------------------------------------------ |
| MEDIUM | Lib/random.py | 930 | # ---------------------------------------------------------------------- |
| MEDIUM | Lib/random.py | 964 | ## ------------------------------------------------------ |
| MEDIUM | Lib/random.py | 1005 | ## ------------------------------------------------------ |
| MEDIUM | Lib/random.py | 1012 | # ------------------------------------------------------ |
| MEDIUM | Lib/argparse.py | 106 | # ============================= |
| MEDIUM | Lib/argparse.py | 108 | # ============================= |
| MEDIUM | Lib/argparse.py | 157 | # =============== |
| MEDIUM | Lib/argparse.py | 159 | # =============== |
| MEDIUM | Lib/argparse.py | 239 | # =============================== |
| MEDIUM | Lib/argparse.py | 241 | # =============================== |
| MEDIUM | Lib/argparse.py | 291 | # ======================== |
| MEDIUM | Lib/argparse.py | 293 | # ======================== |
| MEDIUM | Lib/argparse.py | 335 | # ======================= |
| MEDIUM | Lib/argparse.py | 337 | # ======================= |
| MEDIUM | Lib/argparse.py | 866 | # ===================== |
| MEDIUM | Lib/argparse.py | 868 | # ===================== |
| MEDIUM | Lib/argparse.py | 1576 | # ==================== |
| MEDIUM | Lib/argparse.py | 1578 | # ==================== |
| MEDIUM | Lib/argparse.py | 1587 | # ================================== |
| MEDIUM | Lib/argparse.py | 1589 | # ================================== |
| MEDIUM | Lib/argparse.py | 918 | # ============== |
| MEDIUM | Lib/argparse.py | 920 | # ============== |
| MEDIUM | Lib/argparse.py | 1439 | # ============== |
| MEDIUM | Lib/argparse.py | 1441 | # ============== |
| MEDIUM | Lib/argparse.py | 1500 | # =========================== |
| MEDIUM | Lib/argparse.py | 1502 | # =========================== |
| MEDIUM | Lib/argparse.py | 1607 | # ======================= |
| MEDIUM | Lib/argparse.py | 1609 | # ======================= |
| MEDIUM | Lib/argparse.py | 2040 | # ======================= |
| MEDIUM | Lib/argparse.py | 2042 | # ======================= |
| MEDIUM | Lib/argparse.py | 2055 | # ================================== |
| MEDIUM | Lib/argparse.py | 2057 | # ================================== |
| MEDIUM | Lib/argparse.py | 2113 | # ===================================== |
| MEDIUM | Lib/argparse.py | 2115 | # ===================================== |
| MEDIUM | Lib/argparse.py | 2676 | # ======================== |
| MEDIUM | Lib/argparse.py | 2678 | # ======================== |
| MEDIUM | Lib/argparse.py | 2708 | # ======================== |
| MEDIUM | Lib/argparse.py | 2710 | # ======================== |
| MEDIUM | Lib/argparse.py | 2808 | # ======================= |
| MEDIUM | Lib/argparse.py | 2810 | # ======================= |
| MEDIUM | Lib/argparse.py | 2859 | # ===================== |
| MEDIUM | Lib/argparse.py | 2861 | # ===================== |
| MEDIUM | Lib/argparse.py | 2902 | # =============== |
| 340 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | PC/_testconsole.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} |
| HIGH | PC/msvcrtmodule.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} |
| HIGH | Modules/overlapped.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} |
| HIGH | Modules/_multiprocessing/multiprocessing.c | 0 | {paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}} |
| 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 |
| 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 |
| 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 |
| 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. |
| 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. |
| 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. |
| 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 |
| 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 |
| 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 |
| HIGH | Lib/lzma.py | 0 | return the file descriptor for the underlying file. |
| HIGH | Lib/bz2.py | 0 | return the file descriptor for the underlying file. |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | return the file descriptor for the underlying file. |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | Lib/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | Lib/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | Lib/turtle.py | 0 | 'forward' method, which canvas itself has inherited... |
| HIGH | Lib/turtle.py | 0 | 'forward' method, which canvas itself has inherited... |
| HIGH | Lib/turtle.py | 0 | 'forward' method, which canvas itself has inherited... |
| HIGH | Lib/turtle.py | 0 | 'forward' method, which canvas itself has inherited... |
| HIGH | Lib/turtle.py | 0 | 'forward' method, which canvas itself has inherited... |
| HIGH | Lib/turtle.py | 0 | 'forward' method, which canvas itself has inherited... |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a file-like representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a file-like representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a file-like representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a file-like representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a file-like representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return true if the keyed message exists, false otherwise. |
| HIGH | Lib/mailbox.py | 0 | return true if the keyed message exists, false otherwise. |
| HIGH | Lib/mailbox.py | 0 | return true if the keyed message exists, false otherwise. |
| HIGH | Lib/mailbox.py | 0 | return true if the keyed message exists, false otherwise. |
| HIGH | Lib/mailbox.py | 0 | return a string representation or raise a keyerror. |
| 131 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Misc/mypy/_colorize.py | 571 | except Exception: |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 531 | print("Error: Could not find JSON output from baseline", file=sys.stderr) |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 538 | print(f"Error: Could not parse baseline JSON output: {e}", file=sys.stderr) |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 571 | print(f"Error running baseline benchmark:", file=sys.stderr) |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 579 | print("Error: Baseline benchmark timed out", file=sys.stderr) |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 1014 | print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr) |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 1050 | print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr) |
| LOW | Tools/ssl/multissltests.py | 570 | except Exception as e: |
| LOW | Tools/gdb/libpython.py | 1214 | except Exception as ex: |
| MEDIUM | Tools/gdb/libpython.py | 257 | def safe_tp_name(self): |
| LOW | Tools/c-analyzer/c_parser/__init__.py | 28 | except Exception: |
| LOW | Tools/c-analyzer/c_parser/info.py | 215 | except Exception: |
| MEDIUM | Tools/c-analyzer/c_parser/info.py | 212 | def _make(cls, iterable): |
| LOW | Tools/c-analyzer/c_parser/source.py | 29 | except Exception: |
| LOW | Tools/c-analyzer/cpython/_capi.py | 365 | except Exception as exc: |
| LOW | Tools/c-analyzer/cpython/__main__.py | 174 | except Exception: |
| LOW | Tools/c-analyzer/c_common/scriptutil.py | 227 | except Exception as exc: |
| LOW | Tools/unicode/listcodecs.py | 25 | except Exception as reason: |
| LOW | Tools/cases_generator/generators_common.py | 320 | except Exception as ex: |
| LOW | Tools/inspection/benchmark_external_inspection.py | 551 | except Exception as e: |
| LOW | Tools/clinic/libclinic/dsl_parser.py | 1005 | except Exception as e: |
| LOW | Tools/peg_generator/pegen/first_sets.py | 139 | except Exception as err: |
| LOW | Tools/peg_generator/pegen/grammar_visualizer.py | 55 | except Exception as err: |
| LOW | Tools/peg_generator/pegen/__main__.py | 42 | except Exception as err: |
| LOW | Tools/peg_generator/pegen/__main__.py | 67 | except Exception as err: |
| LOW | Parser/asdl.py | 153 | except Exception as e: |
| MEDIUM | Parser/asdl.py | 154 | print("Error visiting %r: %s" % (obj, e)) |
| LOW | Lib/shutil.py | 105 | except Exception as err: |
| LOW | Lib/shutil.py | 147 | except Exception as err: |
| LOW | Lib/shutil.py | 196 | except Exception as err: |
| LOW | Lib/pkgutil.py | 83 | except Exception: |
| LOW | Lib/rlcompleter.py | 159 | except Exception: |
| LOW | Lib/zipimport.py | 575 | except Exception: |
| LOW | Lib/zipimport.py | 605 | except Exception: |
| LOW | Lib/zipimport.py | 669 | except Exception: |
| LOW | Lib/zipimport.py | 675 | except Exception: |
| MEDIUM | Lib/zipimport.py | 295 | def _read_directory(archive): |
| LOW | Lib/wave.py | 413 | except Exception: |
| LOW | Lib/weakref.py | 569 | except Exception: |
| LOW | Lib/traceback.py | 1160 | except Exception as e: |
| LOW | Lib/traceback.py | 1440 | except Exception: |
| LOW | Lib/traceback.py | 1905 | except Exception: |
| LOW | Lib/traceback.py | 1917 | except Exception: |
| LOW | Lib/traceback.py | 1925 | except Exception: |
| LOW | Lib/traceback.py | 1950 | except Exception: |
| MEDIUM | Lib/code.py | 155 | print('Error in sys.excepthook:', file=sys.stderr) |
| MEDIUM | Lib/pydoc.py | 591 | def repr_instance(self, x, level): |
| LOW | Lib/pydoc.py | 948 | except Exception: |
| LOW | Lib/pydoc.py | 994 | except Exception: |
| LOW | Lib/pydoc.py | 1440 | except Exception: |
| LOW | Lib/pydoc.py | 2657 | except Exception as exc: |
| LOW | Lib/pydoc.py | 2247 | except Exception: |
| LOW | Lib/pydoc.py | 2411 | except Exception as err: |
| LOW | Lib/socketserver.py | 316 | except Exception: |
| LOW | Lib/socketserver.py | 629 | except Exception: |
| LOW | Lib/socketserver.py | 695 | except Exception: |
| MEDIUM | Lib/pdb.py | 204 | print(f'Error: {target} does not exist') |
| MEDIUM | Lib/pdb.py | 207 | print(f'Error: {target} is a directory') |
| MEDIUM | Lib/pdb.py | 904 | def _get_asyncio_task(self): |
| MEDIUM | Lib/pdb.py | 1391 | def _complete_indentation(self, text, line, begidx, endidx): |
| 669 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | PC/layout/main.py | 24 | |
| LOW | PC/layout/main.py | 25 | |
| LOW | PC/layout/main.py | 26 | |
| LOW | PC/layout/main.py | 27 | |
| LOW | PC/layout/main.py | 28 | |
| LOW | PC/layout/main.py | 29 | |
| LOW | PC/layout/main.py | 30 | |
| LOW | PC/layout/main.py | 31 | |
| LOW | PC/layout/main.py | 32 | |
| LOW | PC/layout/main.py | 33 | |
| LOW | PC/layout/main.py | 34 | |
| LOW | PC/layout/__main__.py | 4 | |
| LOW | PC/layout/support/pymanager.py | 1 | |
| LOW | PC/layout/support/arch.py | 1 | |
| LOW | PC/layout/support/arch.py | 2 | |
| LOW | PC/layout/support/arch.py | 3 | |
| LOW | PC/layout/support/appxmanifest.py | 16 | |
| LOW | PC/layout/support/props.py | 7 | |
| LOW | PC/layout/support/pip.py | 14 | |
| LOW | PC/layout/support/nuspec.py | 8 | |
| LOW | Misc/mypy/make_symlinks.py | 2 | |
| LOW | Platforms/Apple/__main__.py | 36 | |
| LOW | Tools/picklebench/memory_dos_impact.py | 27 | |
| LOW | Tools/picklebench/memory_dos_impact.py | 35 | |
| LOW | Tools/picklebench/memory_dos_impact.py | 39 | |
| LOW | Tools/ssl/multissltests.py | 25 | |
| LOW | Tools/c-analyzer/distutils/util.py | 11 | |
| LOW | Tools/c-analyzer/c_parser/__init__.py | 76 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 264 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 264 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 271 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/__init__.py | 271 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/common.py | 9 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/common.py | 9 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/clang.py | 2 | |
| LOW | Tools/c-analyzer/c_parser/preprocessor/clang.py | 2 | |
| LOW | Tools/unicode/genmap_korean.py | 9 | |
| LOW | Tools/unicode/genmap_schinese.py | 10 | |
| LOW | Tools/unicode/genmap_tchinese.py | 8 | |
| LOW | Tools/unicode/genmap_japanese.py | 9 | |
| LOW | Tools/cases_generator/opcode_metadata_generator.py | 22 | |
| LOW | Tools/cases_generator/tier1_generator.py | 8 | |
| LOW | Tools/cases_generator/tier1_generator.py | 8 | |
| LOW | Tools/cases_generator/tier1_generator.py | 21 | |
| LOW | Tools/cases_generator/tier1_generator.py | 21 | |
| LOW | Tools/cases_generator/tier1_generator.py | 21 | |
| LOW | Tools/cases_generator/tier1_generator.py | 33 | |
| LOW | Tools/cases_generator/generators_common.py | 3 | |
| LOW | Tools/cases_generator/generators_common.py | 17 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| LOW | Tools/cases_generator/parser.py | 1 | |
| 764 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Platforms/Apple/__main__.py | 635 | # Create a simlink for the fat library |
| MEDIUM | Platforms/Apple/__main__.py | 710 | # Create an XCframework |
| MEDIUM | Tools/freeze/freeze.py | 440 | # Create a module definition for the bootstrap C code. |
| MEDIUM | Tools/freeze/checkextensions_win32.py | 58 | # Create a table of frozen extensions |
| MEDIUM | Tools/unicode/dawg.py | 18 | # This class represents a node in the directed acyclic word graph (DAWG). It |
| MEDIUM | Tools/unicode/mkstringprep.py | 112 | print("""# This file is generated by mkstringprep.py. DO NOT EDIT. |
| MEDIUM | Parser/asdl.py | 30 | # The following classes define nodes into which the ASDL description is parsed. |
| MEDIUM | Mac/BuildScript/build-installer.py | 1755 | # Create the installer |
| MEDIUM | Lib/_pyio.py | 274 | # Define a default pure-Python implementation for open_code() |
| MEDIUM | Lib/ipaddress.py | 1486 | """This class represents and manipulates 32-bit IPv4 network + addresses.. |
| MEDIUM | Lib/ipaddress.py | 2280 | """This class represents and manipulates 128-bit IPv6 networks. |
| MEDIUM | Lib/webbrowser.py | 780 | # Create an NSURL object representing the URL |
| MEDIUM | Lib/_compat_pickle.py | 1 | # This module is used to map the old Python 2 names to the new names used in |
| MEDIUM | Lib/bdb.py | 885 | # The following methods can be called by clients to use |
| MEDIUM | Lib/bdb.py | 936 | # This method is more useful to debug a single function call. |
| MEDIUM | Lib/zipapp.py | 134 | # Create the list of files to add to the archive now, in case |
| MEDIUM | Lib/gettext.py | 13 | # This module represents the integration of work, contributions, feedback, and |
| MEDIUM | Lib/modulefinder.py | 658 | # Create the module finder and turn its crank |
| MEDIUM | Lib/hashlib.py | 133 | # This function is only used until the module has been initialized. |
| MEDIUM | Lib/hashlib.py | 274 | # The following code can be simplified in Python 3.19 |
| MEDIUM | Lib/subprocess.py | 2158 | # This method is called (indirectly) by __del__, so it cannot |
| MEDIUM | Lib/subprocess.py | 2431 | # This method is called from the _communicate_with_*() methods |
| MEDIUM | Lib/profile.py | 438 | # This method is more useful to profile a single function call. |
| MEDIUM | Lib/code.py | 162 | # This method is being overwritten in |
| MEDIUM | Lib/pydoc.py | 757 | # Create a link for methods like 'self.method(...)' |
| MEDIUM | Lib/types.py | 329 | # The following code is primarily to support functions that |
| MEDIUM | Lib/pdb.py | 697 | """This method is called when there is the remote possibility |
| MEDIUM | Lib/pdb.py | 706 | """This function is called when we stop or break at this line.""" |
| MEDIUM | Lib/pdb.py | 739 | """This function is called when a return trap is set here.""" |
| MEDIUM | Lib/pdb.py | 748 | """This function is called if an exception occurs, |
| MEDIUM | Lib/threading.py | 141 | """This class implements reentrant lock objects. |
| MEDIUM | Lib/threading.py | 324 | # This method is called only if _lock doesn't have _is_owned(). |
| MEDIUM | Lib/threading.py | 454 | """This class implements semaphore objects. |
| MEDIUM | Lib/threading.py | 1445 | # Create a local namespace to ensure that variables remain alive |
| MEDIUM | Lib/threading.py | 1689 | # Create the main thread object, |
| MEDIUM | Lib/platform.py | 9 | # This module is maintained by Marc-Andre Lemburg <mal@egenix.com>. |
| MEDIUM | Lib/pstats.py | 74 | """This class is used for creating reports from data generated by the |
| MEDIUM | Lib/pstats.py | 326 | # The following functions support actual printing of reports |
| MEDIUM | Lib/pstats.py | 557 | """This class provides a generic function for comparing any two tuples. |
| MEDIUM | Lib/pstats.py | 600 | # The following functions combine statistics for pairs functions. |
| MEDIUM | Lib/pstats.py | 637 | # The following functions support printing of reports |
| MEDIUM | Lib/inspect.py | 29 | # This module is in the public domain. No warranties. |
| MEDIUM | Lib/_opcode_metadata.py | 1 | # This file is generated by Tools/cases_generator/py_metadata_generator.py |
| MEDIUM | Lib/annotationlib.py | 167 | # Create a new locals dict if necessary, |
| MEDIUM | Lib/_pydatetime.py | 494 | # This function is intended to validate datetimes, but because |
| MEDIUM | Lib/fractions.py | 183 | """This class implements rational numbers. |
| MEDIUM | Lib/_ast_unparse.py | 1 | # This module contains ``ast.unparse()``, defined here |
| MEDIUM | Lib/mailbox.py | 622 | # This method is for backward compatibility only. |
| MEDIUM | Lib/ast.py | 628 | # The following code is for backward compatibility. |
| MEDIUM | Lib/doctest.py | 153 | # Create a new flag unless `name` is already known. |
| MEDIUM | Lib/doctest.py | 676 | # Create an Example, and add it to the list. |
| MEDIUM | Lib/doctest.py | 1299 | # Create a fake output target for capturing doctest output. |
| MEDIUM | Lib/_pylong.py | 147 | # This function implements a divide-and-conquer algorithm that is |
| MEDIUM | Lib/_pylong.py | 231 | # This function implements a divide-and-conquer algorithm making use |
| MEDIUM | Lib/dataclasses.py | 381 | # This function is used instead of exposing Field creation directly, |
| MEDIUM | Lib/dataclasses.py | 530 | # Create an __annotate__ function for a dataclass |
| MEDIUM | Lib/dataclasses.py | 1203 | # Create a comparison function. If the fields in the object are |
| MEDIUM | Lib/dataclasses.py | 1229 | # Create a class doc-string lazily via descriptor protocol |
| MEDIUM | Lib/dataclasses.py | 1349 | # Create a new dict for our new class. |
| MEDIUM | Lib/dataclasses.py | 1822 | # Create the new object, which calls __init__() and |
| 229 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 282 | """Run all benchmarks and return comprehensive results.""" |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 390 | """Run comprehensive antagonistic test suite.""" |
| MEDIUM | Tools/picklebench/memory_dos_impact.py | 447 | """Run comprehensive test suite across all sizes and types.""" |
| LOW | Tools/c-analyzer/distutils/unixccompiler.py | 23 | # * optimization/debug/warning flags; we just use whatever's in Python's |
| LOW | Tools/unicode/dawg.py | 347 | # we don't know position of the edge yet, just use something big as |
| LOW | Tools/cases_generator/generators_common.py | 55 | # Not relative to root, just return original path. |
| MEDIUM | Tools/inspection/benchmark_external_inspection.py | 313 | """Print comprehensive benchmark results""" |
| LOW | Tools/patchcheck/patchcheck.py | 142 | # We just use an existence check here as: |
| LOW | Tools/peg_generator/pegen/build.py | 58 | # To further add to the shared builds fun on Unix, we can't just add |
| MEDIUM | Include/internal/pycore_object.h | 801 | // Essentially _PyObject_GET_WEAKREFS_LISTPTR_FROM_OFFSET(): |
| MEDIUM | Objects/mimalloc/prim/osx/alloc-override-zone.c | 400 | // it seems less robust than using interpose. |
| LOW | Mac/BuildScript/build-installer.py | 1186 | # by child processes from their parents. We used to just set |
| MEDIUM | Mac/BuildScript/build-installer.py | 1340 | # TODO: make this more robust! test_sysconfig_module of |
| LOW | Lib/shutil.py | 1628 | # what file suffixes are executable, so just pass on cmd as-is. |
| MEDIUM | Lib/trace.py | 25 | # Bioreason or Mojam Media be used in advertising or publicity pertaining to |
| LOW | Lib/difflib.py | 1427 | # Handle case where no user markup is to be added, just return line of |
| LOW | Lib/difflib.py | 1816 | # if blank line or context separator, just add it to the output list |
| LOW | Lib/difflib.py | 1821 | # if line text doesn't need wrapping, just add it to the output list |
| LOW | Lib/ftplib.py | 405 | # then we'll just use anonymous@ |
| LOW | Lib/optparse.py | 565 | # Check all the attributes we just set. There are lots of |
| LOW | Lib/pdb.py | 3366 | # No logic applied whatsoever, just pass the raw reply back. |
| LOW | Lib/threading.py | 293 | # these override the default implementations (which just call |
| MEDIUM | Lib/turtle.py | 700 | """Set focus on canvas (in order to collect key-events) |
| MEDIUM | Lib/turtle.py | 1457 | """Set focus on TurtleScreen (in order to collect key-events) |
| MEDIUM | Lib/doctest.py | 1777 | # in conjunction with the ELLIPSIS flag. |
| LOW | Lib/argparse.py | 2480 | # for regular arguments, just add them back into the list |
| LOW | Lib/dataclasses.py | 574 | # via object.__setattr__. Otherwise, just use a simple |
| LOW | Lib/dataclasses.py | 630 | # just use the class attribute that contains the default. |
| LOW | Lib/graphlib.py | 287 | # successors, so when backtracking to a shallower level we can just call |
| LOW | Lib/tarfile.py | 1532 | # Normally, we could just use "utf-8" as the encoding and "strict" |
| LOW | Lib/_pydecimal.py | 3315 | # otherwise, simply return the adjusted exponent of self, as a |
| LOW | Lib/ntpath.py | 593 | # just return the old path. |
| LOW | Lib/test/test_winsound.py | 19 | # even *should* play. Instead of guessing, just call the function and assume |
| MEDIUM | Lib/test/test_wsgiref.py | 445 | # Not comprehensive, just a few random header names |
| MEDIUM | Lib/test/test_logging.py | 8 | # not be used in advertising or publicity pertaining to distribution |
| LOW | Lib/test/test_urllib2.py | 1165 | # required, so just use a dummy one to instantiate |
| MEDIUM | Lib/test/test_pdb.py | 1 | # A test suite for pdb; not very comprehensive at the moment. |
| MEDIUM | Lib/test/test_lzma.py | 517 | # Test robust handling of non-LZMA data following the compressed stream(s). |
| MEDIUM | Lib/test/test_decimal.py | 5880 | """The C Context docstrings use 'x' in order to prevent confusion |
| MEDIUM | Lib/test/test_grammar.py | 1970 | # This is not intended to be a comprehensive test, rather just to be few |
| MEDIUM | Lib/test/test_bytes.py | 2330 | # comprehensive for things like partition, etc. |
| LOW | Lib/test/test_py_compile.py | 284 | # assert_python_* helpers don't return proc object. We'll just use |
| LOW | Lib/test/test_subprocess.py | 1487 | # Subsequent invocations should just return the returncode |
| LOW | Lib/test/test_subprocess.py | 1493 | # Subsequent invocations should just return the returncode |
| MEDIUM | Lib/test/test_urllib2net.py | 35 | # Connecting to remote hosts is flaky. Make it more robust by retrying |
| MEDIUM | Lib/test/test_startfile.py | 29 | # means the test harness provided directory isn't a safe option. |
| MEDIUM | Lib/test/test_signal.py | 1396 | # a signal is ignored due to the aforementioned |
| MEDIUM | Lib/test/test_socketserver.py | 54 | # Don't raise an exception; it would be caught by the test harness. |
| LOW | Lib/test/test_unicode_file.py | 120 | # The 'test' functions are unittest entry points, and simply call our |
| LOW | Lib/test/test_long.py | 1240 | # nonnegative second argument: round(x, n) should just return x |
| LOW | Lib/test/test_argparse.py | 273 | # redirected, simply call the function and let the enclosing function |
| LOW | Lib/test/test_types.py | 522 | # So, just use a sign flag |
| LOW | Lib/test/test_multiprocessing_main_handling.py | 81 | # so we just use "int" as a passthrough operation below |
| LOW | Lib/test/test_gdb/test_pretty_print.py | 117 | # We cannot simply call locale.getpreferredencoding() here, |
| MEDIUM | Lib/test/test_os/test_os.py | 2510 | # We spawn a new process to make the test more robust (if getrlimit() |
| LOW | Lib/test/test_pyrepl/test_windows_console.py | 603 | # because for simplicity we just use |
| LOW | Lib/test/test_unittest/test_loader.py | 671 | # XXX Should this raise a ValueError or just return an empty TestSuite? |
| LOW | Lib/test/test_unittest/testmock/testmock.py | 1200 | # need to do this because MagicMock.mock_calls used to just return |
| MEDIUM | Lib/test/support/asyncore.py | 20 | # Rushing not be used in advertising or publicity pertaining to |
| MEDIUM | Lib/test/support/asynchat.py | 20 | # Rushing not be used in advertising or publicity pertaining to |
| 29 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | Tools/picklebench/memory_dos_impact.py | 510 | Extract JSON data from subprocess output. Skips any print statements before the JSON output and parses the JSON |
| 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 |
| 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 |
| 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 |
| HIGH | Lib/ipaddress.py | 118 | Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat |
| HIGH | Lib/ipaddress.py | 302 | Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), |
| HIGH | Lib/ipaddress.py | 438 | Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi |
| HIGH | Lib/ipaddress.py | 468 | Return prefix length from a numeric string Args: prefixlen_str: The string to be converted |
| HIGH | Lib/ipaddress.py | 493 | Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver |
| HIGH | Lib/ipaddress.py | 789 | Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') |
| HIGH | Lib/ipaddress.py | 864 | Compare two IP objects. This is only concerned about the comparison of the integer representation of th |
| 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 |
| HIGH | Lib/ipaddress.py | 975 | The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi |
| HIGH | Lib/ipaddress.py | 1181 | Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. |
| HIGH | Lib/ipaddress.py | 1207 | Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R |
| HIGH | Lib/ipaddress.py | 1650 | Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: |
| HIGH | Lib/ipaddress.py | 1763 | Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. |
| HIGH | Lib/ipaddress.py | 1837 | Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. |
| HIGH | Lib/selectors.py | 22 | Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns |
| HIGH | Lib/selectors.py | 101 | Register a file object. Parameters: fileobj -- file object or file descriptor events -- events |
| HIGH | Lib/selectors.py | 124 | Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns: |
| HIGH | Lib/selectors.py | 142 | Change a registered file object monitored events or attached data. Parameters: fileobj -- file object o |
| HIGH | Lib/getpass.py | 69 | Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: |
| 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 |
| 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 |
| 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 |
| HIGH | Lib/profiling/sampling/_sync_coordinator.py | 39 | Validate and parse command line arguments. Args: args: Command line arguments including script name |
| 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 |
| HIGH | Lib/concurrent/futures/_base.py | 423 | Return the result of the call that the future represents. Args: timeout: The number of seconds to w |
| HIGH | Lib/concurrent/futures/_base.py | 458 | Return the exception raised by the call that the future represents. Args: timeout: The number of se |
| HIGH | Lib/concurrent/futures/_base.py | 605 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume |
| HIGH | Lib/concurrent/futures/process.py | 836 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Tools/c-analyzer/c_common/scriptutil.py | 26 | # Check if "installed". |
| LOW | Tools/msi/csv_to_wxs.py | 112 | # Check if the file matches. If so, we don't want to touch it so |
| LOW | Tools/cases_generator/stack.py | 9 | # Set this to true for voluminous output showing state of stack and locals |
| LOW | Tools/inspection/benchmark_external_inspection.py | 459 | # Check if it's still running |
| LOW | Tools/inspection/benchmark_external_inspection.py | 540 | # Print results |
| LOW | Tools/peg_generator/pegen/grammar.py | 30 | # Check if there are repeated rules in "rules" |
| LOW | PCbuild/get_external.py | 134 | # Check if the dependency already exists in externals/ directory |
| LOW | Lib/dis.py | 584 | # Set argval to the dereferenced value of the argument when |
| LOW | Lib/_py_abc.py | 131 | # Check if it's a direct subclass |
| LOW | Lib/_py_abc.py | 135 | # Check if it's a subclass of a registered class (recursive) |
| LOW | Lib/_py_abc.py | 140 | # Check if it's a subclass of a subclass (recursive) |
| LOW | Lib/zipimport.py | 307 | # Check if there's a comment. |
| LOW | Lib/pyclbr.py | 143 | # Check if it is a built-in module; we don't do much for these. |
| LOW | Lib/heapq.py | 281 | # Set childpos to index of smaller child. |
| LOW | Lib/heapq.py | 317 | # Set childpos to index of larger child. |
| LOW | Lib/hashlib.py | 142 | # Check if the context security policy blocks the digest or not |
| LOW | Lib/traceback.py | 1505 | # Check if it works |
| LOW | Lib/traceback.py | 1830 | # Check if attr_name is a descriptor - if so, skip it |
| LOW | Lib/types.py | 316 | # Check if 'func' is a coroutine function. |
| LOW | Lib/types.py | 321 | # Check if 'func' is a generator function. |
| LOW | Lib/pdb.py | 231 | # Open the file each time because the file may be modified |
| LOW | Lib/pdb.py | 2998 | # Check if the interpreter is finalizing every quarter of a second. |
| LOW | Lib/poplib.py | 232 | # Check if the response has enough elements |
| LOW | Lib/plistlib.py | 676 | # Write file header |
| LOW | Lib/_py_warnings.py | 468 | # Check if message is already a Warning object |
| LOW | Lib/_py_warnings.py | 622 | # Print message and context |
| LOW | Lib/_osx_support.py | 413 | # Check if the SDK that is used during compilation actually exists, |
| LOW | Lib/compileall.py | 87 | # Check if this is a system where ProcessPoolExecutor can function. |
| LOW | Lib/doctest.py | 1830 | # Check if we should use diff. |
| LOW | Lib/doctest.py | 2227 | # Read the file, convert it to a test, and run it. |
| LOW | Lib/smtplib.py | 427 | # Check if multiline response. |
| LOW | Lib/graphlib.py | 174 | # Check if we know about this node (it was added previously using add() |
| LOW | Lib/tarfile.py | 1224 | # Check if one of the fields contains surrogate characters and thereby |
| LOW | Lib/tarfile.py | 1509 | # Check if the pax header contains a hdrcharset field. This tells us |
| LOW | Lib/typing.py | 1279 | # Check if any base that occurs after us in `bases` is either itself a |
| LOW | Lib/typing.py | 2109 | # Check if the members appears in the class dictionary... |
| LOW | Lib/tokenize.py | 390 | # Check if the line matches the encoding. |
| LOW | Lib/ctypes/util.py | 257 | # Check if the given file is an elf file: gcc can report |
| LOW | Lib/ctypes/util.py | 430 | # Check if the given file is an elf file: gcc can report |
| LOW | Lib/ctypes/__init__.py | 144 | # Check if sizeof(ctypes_type) against struct.calcsize. This |
| LOW | Lib/unittest/mock.py | 455 | # Check if spec is an async object or function |
| LOW | Lib/test/test_external_inspection.py | 106 | # Check if all expected signals are in buffer |
| LOW | Lib/test/test__interpchannels.py | 1412 | # Set this to True to avoid creating interpreters, e.g. when |
| LOW | Lib/test/test_gzip.py | 204 | # Open the file for writing, then close it. |
| LOW | Lib/test/test_logging.py | 6308 | # Set level to NOTSET and ensure caches are empty |
| LOW | Lib/test/test_pdb.py | 3667 | # Check if the custom prefix appeared in the output |
| LOW | Lib/test/test_difflib.py | 260 | # Check if the problem described in patch #1413711 exists. |
| LOW | Lib/test/test_type_cache.py | 33 | # Check if global version tag has already overflowed. |
| LOW | Lib/test/test_typing.py | 5093 | # Check if a dictionary conforms to Dict type |
| LOW | Lib/test/test_typing.py | 5108 | # Check if an instance conforms to the generic class |
| LOW | Lib/test/test_typing.py | 5120 | # Check if list conforms to a List subclass |
| LOW | Lib/test/test_remote_pdb.py | 980 | # Add commands to the queue |
| LOW | Lib/test/test_remote_pdb.py | 1005 | # Check if prompt was sent to client |
| LOW | Lib/test/test_remote_pdb.py | 1161 | # Check if we got the expected output |
| LOW | Lib/test/test_http_cookies.py | 104 | # Check if the cookie is loaded correctly |
| LOW | Lib/test/test_compile.py | 1395 | # Check if bytecode containing jumps that simply point to the next line |
| LOW | Lib/test/test_dtrace.py | 243 | # Check if bpftrace is available and can attach to USDT probes |
| LOW | Lib/test/test_annotationlib.py | 2351 | # Check if the passed in mutable arguments equal the originals |
| LOW | Lib/test/test_codecs.py | 2931 | # Check if the BOM is written only once |
| LOW | Lib/test/test_pyrepl/test_terminfo.py | 595 | # Check if standard curses can setup this terminal in subprocess |
| 48 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | Lib/test/test_urllib2net.py | 362 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) |
| CRITICAL | Lib/test/test_urllib2net.py | 373 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) |
| CRITICAL | Lib/test/test_urllib2net.py | 385 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) |
| CRITICAL | Lib/test/test_urllib2net.py | 392 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) |
| CRITICAL | Lib/test/test_lazy_import/__init__.py | 514 | g = test.test_lazy_import.data.pkg.c.get_globals() |
| CRITICAL | Lib/test/test_asyncio/test_proactor_events.py | 816 | self.proactor.recv.return_value.add_done_callback.assert_called_with( |
| CRITICAL | Lib/test/test_asyncio/test_proactor_events.py | 825 | self.proactor.recv.return_value.add_done_callback.assert_called_with( |
| CRITICAL | Lib/xml/dom/expatbuilder.py | 316 | self.document.doctype.entities._seq.append(node) |
| CRITICAL | Lib/xml/dom/expatbuilder.py | 322 | self.document.doctype.notations._seq.append(node) |
| CRITICAL | Lib/idlelib/idle_test/test_textview.py | 211 | self.assertEqual(self.view.viewframe.textframe.text.get('1.0', '1.end'), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Tools/c-analyzer/c_parser/parser/_func_body.py | 49 | |
| MEDIUM | Tools/c-analyzer/c_parser/parser/_func_body.py | 50 | |
| MEDIUM | Tools/c-analyzer/cpython/_analyzer.py | 121 | |
| MEDIUM | Tools/c-analyzer/cpython/_analyzer.py | 133 | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 119 | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 121 | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 124 | |
| MEDIUM | Tools/c-analyzer/c_analyzer/datafiles.py | 125 | |
| MEDIUM | Lib/test/test__interpchannels.py | 611 | |
| MEDIUM | Lib/test/test__interpchannels.py | 613 | |
| MEDIUM | Lib/test/test_fractions.py | 175 | |
| MEDIUM | Lib/test/test_threading.py | 2488 | |
| MEDIUM | Lib/test/test_itertools.py | 2440 | |
| MEDIUM | Lib/test/test_array.py | 1136 | |
| MEDIUM | Lib/test/test_generators.py | 577 | |
| MEDIUM | Lib/test/test_generators.py | 588 | |
| MEDIUM | Lib/test/test_exceptions.py | 1830 | |
| MEDIUM | Lib/test/test_compile.py | 905 | |
| MEDIUM | Lib/test/test_set.py | 21 | |
| MEDIUM | Lib/test/test_set.py | 1109 | |
| MEDIUM | Lib/test/test_deque.py | 16 | |
| MEDIUM | Lib/test/test_sys_settrace.py | 2762 | |
| MEDIUM | Lib/test/test_yield_from.py | 203 | |
| MEDIUM | Lib/test/test_yield_from.py | 204 | |
| MEDIUM | Lib/test/test_yield_from.py | 205 | |
| MEDIUM | Lib/test/test_asyncgen.py | 417 | |
| MEDIUM | Lib/test/test_asyncgen.py | 450 | |
| MEDIUM | Lib/test/test_asyncgen.py | 587 | |
| MEDIUM | Lib/test/test_asyncgen.py | 868 | |
| MEDIUM | Lib/test/test_asyncgen.py | 996 | |
| MEDIUM | Lib/test/test_asyncgen.py | 2046 | |
| MEDIUM | Lib/test/test_asyncgen.py | 2067 | |
| MEDIUM | Lib/test/test_asyncgen.py | 2091 | |
| MEDIUM | Lib/test/test_asyncgen.py | 837 | |
| MEDIUM | Lib/test/test_asyncgen.py | 911 | |
| MEDIUM | Lib/test/test_builtin.py | 1429 | |
| MEDIUM | Lib/test/test_dict.py | 291 | |
| MEDIUM | Lib/test/dtracedata/call_stack.py | 15 | |
| MEDIUM | Lib/test/test_unittest/test_async_case.py | 362 | |
| MEDIUM | Lib/test/test_capi/test_misc.py | 1624 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Lib/socketserver.py | 273 | def handle_request(self): |
| LOW | Lib/contextlib.py | 366 | def helper(*args, **kwds): |
| LOW | Lib/contextlib.py | 399 | def helper(*args, **kwds): |
| LOW | Lib/test/test_unparse.py | 927 | def test_function(self): |
| LOW | Lib/test/test_gc.py | 228 | def test_function(self): |
| LOW | Lib/test/test_logging.py | 2169 | def handle_request(self, request): |
| LOW | Lib/test/test_with.py | 44 | def helper(*args, **kwds): |
| LOW | Lib/test/test_marshal.py | 19 | def helper(self, sample, *extra): |
| LOW | Lib/test/test_pdb.py | 721 | def do_something(): |
| LOW | Lib/test/test_pdb.py | 53 | >>> def test_function(foo, bar): |
| LOW | Lib/test/test_pdb.py | 98 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 234 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 365 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 416 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 441 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 487 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 520 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 642 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 668 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 689 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 743 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 770 | 1 def test_function(): |
| LOW | Lib/test/test_pdb.py | 816 | ... def do_something(): |
| LOW | Lib/test/test_pdb.py | 834 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 867 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 937 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1009 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1094 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1115 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1133 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1190 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1286 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1368 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1422 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1495 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1528 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1560 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1635 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1687 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1724 | 1 def test_function(): |
| LOW | Lib/test/test_pdb.py | 1754 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1824 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 1912 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2005 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2069 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2134 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2166 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2228 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2281 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2336 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2397 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2450 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2515 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2553 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2612 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2648 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2693 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2739 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2769 | >>> def test_function(): |
| LOW | Lib/test/test_pdb.py | 2805 | >>> def test_function(): |
| 45 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Lib/encodings/idna.py | 68 | # Step 1: try ASCII |
| LOW | Lib/encodings/idna.py | 82 | # Step 2: nameprep |
| LOW | Lib/encodings/idna.py | 85 | # Step 3: UseSTD3ASCIIRules is false |
| LOW | Lib/encodings/idna.py | 86 | # Step 4: try ASCII |
| LOW | Lib/encodings/idna.py | 100 | # Step 5: Check ACE prefix |
| LOW | Lib/encodings/idna.py | 105 | # Step 6: Encode with PUNYCODE |
| LOW | Lib/encodings/idna.py | 108 | # Step 7: Prepend ACE prefix |
| LOW | Lib/encodings/idna.py | 111 | # Step 8: Check size |
| LOW | Lib/encodings/idna.py | 130 | # Step 1: Check for ASCII |
| LOW | Lib/encodings/idna.py | 141 | # Step 2: Perform nameprep |
| LOW | Lib/encodings/idna.py | 149 | # Step 3: Check for ACE prefix |
| LOW | Lib/encodings/idna.py | 154 | # Step 4: Remove ACE prefix |
| LOW | Lib/encodings/idna.py | 157 | # Step 5: Decode using PUNYCODE |
| LOW | Lib/encodings/idna.py | 164 | # Step 6: Apply ToASCII |
| LOW | Lib/encodings/idna.py | 167 | # Step 7: Compare the result of step 6 with the one of step 3 |
| LOW | Lib/encodings/idna.py | 173 | # Step 8: return the result of step 5 |
| LOW | Lib/test/test_curses.py | 947 | # range may be restricted, so we need to check if the limit is still |
| LOW | Lib/email/header.py | 399 | # Step 1: Normalize the chunks so that all runs of identical charsets |
| LOW | Modules/expat/refresh.sh | 22 | # Step 1: download and copy files |
| LOW | Modules/expat/refresh.sh | 26 | # Step 2: Pull files from the libexpat distribution |
| LOW | Modules/expat/refresh.sh | 57 | # Step 3: Add the namespacing include to expat_external.h |
| LOW | Modules/expat/refresh.sh | 67 | # Step 4: Skip the Windows rand_s entropy path in xmlparse.c when |
| LOW | Modules/_hacl/refresh.sh | 39 | # Step 1: copy files |
| LOW | Modules/_hacl/refresh.sh | 116 | # Step 2: some in-place modifications to keep things simple and minimal |
| LOW | Modules/_hacl/refresh.sh | 151 | # Step 3: trim whitespace (for the linter) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | Include/internal/pycore_global_strings.h | 911 | /* End auto-generated code */ |
| HIGH | Include/internal/pycore_unicodeobject_generated.h | 3476 | /* End auto-generated code */ |
| HIGH | Include/internal/pycore_runtime_init_generated.h | 2439 | /* End auto-generated code */ |
| HIGH | Include/internal/pycore_global_objects_fini_generated.h | 2442 | /* End auto-generated code */ |
| HIGH | Lib/subprocess.py | 334 | # which is calling `CloseHandle` as requested in [1]), so there is nothing |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Tools/clinic/libclinic/block_parser.py | 179 | # make sure to recognize stop line even if it |
| LOW | Python/jit.c | 170 | // Do NOT ever leave the memory writable! Also, don't forget to flush the |
| LOW | Python/jit.c | 642 | // Compiles executor in-place. Don't forget to call _PyJIT_Free later! |
| MEDIUM | Python/hamt.c | 413 | Also it's worth noting that it would be possible to adapt the tree |
| LOW | Objects/exceptions.c | 37 | /* NOTE: If the exception class hierarchy changes, don't forget to update |
| MEDIUM | Lib/heapq.py | 267 | # you can use it. |
| LOW | Lib/quopri.py | 91 | # Don't forget to include the soft line break `=' sign in the |
| MEDIUM | Lib/ntpath.py | 402 | # XXX With COMMAND.COM you can use any characters in a variable name, |
| LOW | Lib/test/test_gc.py | 1729 | # make sure to always test gc.enable() |
| LOW | Lib/test/_test_multiprocessing.py | 1520 | q.join_thread() # make sure to join the feeder thread |
| MEDIUM | Lib/test/test_logging.py | 425 | # level values which do not fit into these limitations, you can use a |
| LOW | Lib/test/test_bigmem.py | 46 | # - Don't forget to test for large indices, offsets and results and such, |
| MEDIUM | Lib/test/test_unittest/testmock/testmagicmethods.py | 533 | # Check if you can change behaviour of magic methods in MagicMock init |
| LOW | Lib/_pyrepl/fancycompleter.py | 177 | # sort the words now to make sure to return completions in |
| LOW | Modules/arraymodule.c | 767 | * Don't forget to update typecode_to_mformat_code() if you add a new |
| MEDIUM | Modules/xxsubtype.c | 106 | PyDoc_STR("an int variable for demonstration purposes")}, |
| MEDIUM | Modules/xxsubtype.c | 204 | PyDoc_STR("an int variable for demonstration purposes")}, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Lib/test/test_curses.py | 397 | self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,') |
| LOW | Lib/test/test_curses.py | 438 | self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') |
| LOW | Lib/test/test_curses.py | 441 | self.assertEqual(win.instr(3, 0), b'dolor sit amet,') |
| LOW | Lib/test/test_curses.py | 447 | self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') |
| LOW | Lib/test/test_curses.py | 457 | self.assertEqual(win.instr(0, 0), b'dolor sit amet,') |
| LOW | Lib/test/test_curses.py | 479 | win.addstr(2, 0, 'Lorem ipsum') |
| LOW | Lib/test/test_curses.py | 480 | win.addstr(3, 0, 'dolor sit amet') |
| LOW | Lib/test/test_curses.py | 509 | win.addstr(0, 0, 'Lorem ipsum') |
| LOW | Lib/test/test_curses.py | 597 | win.addstr(2, 1, 'Lorem ipsum') |
| LOW | Lib/test/test_curses.py | 605 | self.assertEqual(win.instr(2, 0), b' Lorem ipsum') |
| LOW | Lib/test/test_curses.py | 1349 | 'Lorem ipsum', |
| LOW | Lib/test/test_curses.py | 1350 | 'dolor sit amet,', |
| LOW | Lib/test/test_smtplib.py | 518 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 555 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 584 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 644 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 681 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_tkinter/test_text.py | 152 | 'Lorem ipsum dolor sit amet,\n' |
| LOW | Lib/test/test_tkinter/test_text.py | 152 | 'Lorem ipsum dolor sit amet,\n' |
| LOW | Lib/test/test_dataclasses/__init__.py | 2313 | self.assertEqual(C.__doc__, "Lorem ipsum") |
| LOW | Lib/test/test_dataclasses/__init__.py | 2310 | """Lorem ipsum""" |
| LOW | Lib/test/test_email/test_generator.py | 603 | msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo") |
| LOW | Lib/test/test_email/test_email.py | 3463 | address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>' |
| LOW | Lib/test/test_email/test_email.py | 3463 | address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>' |
| LOW | Lib/test/test_email/test_email.py | 3465 | [('Jane Doe', 'jane@example.net'), |
| LOW | Lib/test/test_email/test_email.py | 3466 | ('John Doe', 'john@example.net')]) |
| LOW | Lib/test/test_email/test_email.py | 3468 | [('Jane Doe', 'jane@example.net'), |
| LOW | Lib/test/test_email/test_email.py | 3469 | ('John Doe', 'john@example.net')]) |
| LOW | Lib/test/test_email/test_email.py | 3525 | eq(addrs[0][1], 'foo@bar.com') |
| LOW | Lib/test/test_email/test_email.py | 3725 | check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>', |
| LOW | Lib/test/test_email/test_email.py | 3725 | check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>', |
| LOW | Lib/test/test_email/test_email.py | 4232 | ('From: foo@bar.com', ('From', 'foo@bar.com')), |
| LOW | Lib/test/test_email/test_email.py | 4265 | ['foo@bar.com', |
| LOW | Lib/test/test_email/test_email.py | 4276 | [('From', 'foo@bar.com'), |
| LOW | Lib/test/test_email/test_email.py | 4288 | ['foo@bar.com', |
| LOW | Lib/test/test_email/test_message.py | 581 | ('To', 'foo@bar.com'), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Tools/msi/purge.py | 3 | # Usage: |
| LOW | Include/critical_section.h | 29 | // Example usage: |
| LOW | Include/pyport.h | 630 | // Usage example: |
| LOW | Include/internal/pycore_parking_lot.h | 53 | // Example usage: |
| LOW | Include/internal/pycore_parking_lot.h | 82 | // Example usage: |
| LOW | Lib/test/test_unittest/testmock/testmock.py | 600 | # Usage example |
| LOW | Lib/zipfile/__init__.py | 717 | # Usage: |