Repository Analysis

python/cpython

The Python programming language

9.3 Low AI signal View on GitHub
9.3
Adjusted Score
9.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
72,908
Stars
Python
Language
2,254,317
Lines of Code
3932
Files
21325
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 10HIGH 643MEDIUM 943LOW 19729

Pattern Findings

21325 matches across 20 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers12235 hits · 9223 pts
SeverityFileLineSnippet
LOWPC/layout/support/appxmanifest.py382def disable_registry_virtualization(xml):
LOWPC/layout/support/nuspec.py64def _get_nuspec_data_overrides(ns):
LOWPlatforms/Apple/__main__.py1045def print_called_process_error(e: subprocess.CalledProcessError) -> None:
LOWPlatforms/emscripten/__main__.py41def required_emscripten_version():
LOWPlatforms/emscripten/__main__.py460def configure_emscripten_python(context, working_dir):
LOWPlatforms/emscripten/__main__.py644def add_cross_build_dir_option(subcommand):
LOWPlatforms/emscripten/web_example/server.py22class MyHTTPRequestHandler(server.SimpleHTTPRequestHandler):
LOWPlatforms/Android/__main__.py1041def print_called_process_error(e):
LOWTools/picklebench/memory_dos_impact.py509 def _extract_json_from_output(output: str) -> Dict[str, Dict[str, Any]]:
LOWTools/picklebench/memory_dos_impact.py668 def format_antagonistic_comparison(
LOWTools/gdb/libpython.py81def interp_frame_has_tlbc_index():
LOWTools/gdb/libpython.py750def items_from_keys_and_values(keys, values):
LOWTools/gdb/libpython.py1283 def print_traceback_until_shim(self, frame_index=None):
LOWTools/gdb/libpython.py1882 def get_selected_python_frame(cls):
LOWTools/gdb/libpython.py1900 def get_selected_bytecode_frame(cls):
LOWTools/c-analyzer/distutils/ccompiler.py299# def runtime_library_dir_option(self, dir):
LOWTools/c-analyzer/distutils/msvc9compiler.py190def normalize_and_reduce_paths(paths):
LOWTools/c-analyzer/distutils/msvccompiler.py181def normalize_and_reduce_paths(paths):
LOWTools/c-analyzer/cpython/_analyzer.py297def _has_other_supported_type(decl):
LOWTools/c-analyzer/c_common/scriptutil.py336def add_failure_filtering_cli(parser, pool, *, default=False):
LOWTools/c-analyzer/c_common/tables.py203def _normalize_table_file_props(header, sep):
LOWTools/cases_generator/opcode_metadata_generator.py82def emit_stack_effect_function(
LOWTools/cases_generator/opcode_metadata_generator.py99def generate_stack_effect_functions(analysis: Analysis, out: CWriter) -> None:
LOWTools/cases_generator/opcode_metadata_generator.py139def generate_instruction_formats(analysis: Analysis, out: CWriter) -> None:
LOWTools/cases_generator/analyzer.py769def escaping_call_in_simple_stmt(stmt: SimpleStmt, result: dict[SimpleStmt, EscapingCall]) -> None:
LOWTools/cases_generator/analyzer.py925def stmt_has_jump_on_unpredictable_path_body(stmts: list[Stmt] | None, branches_seen: int) -> tuple[bool, int]:
LOWTools/cases_generator/analyzer.py936def stmt_has_jump_on_unpredictable_path(stmt: Stmt, branches_seen: int) -> tuple[bool, int]:
LOWTools/cases_generator/analyzer.py1303def get_instruction_size_for_uop(instructions: dict[str, Instruction], uop: Uop) -> int | None:
LOWTools/cases_generator/record_function_generator.py71def get_instruction_record_names(inst: Instruction) -> list[str]:
LOWTools/cases_generator/record_function_generator.py113def get_record_consumer_layout(
LOWTools/cases_generator/record_function_generator.py142def get_record_transform_input(uop: Uop) -> str:
LOWTools/cases_generator/record_function_generator.py151def generate_record_transform_function(uop: Uop, out: CWriter) -> None:
LOWTools/cases_generator/record_function_generator.py169def generate_recorder_functions(filenames: list[str], analysis: Analysis, out: CWriter) -> None:
LOWTools/cases_generator/record_function_generator.py277def generate_record_transform_dispatcher(
LOWTools/cases_generator/generators_common.py382 def stackref_close_specialized(
LOWTools/cases_generator/py_metadata_generator.py46def generate_specialized_opmap(analysis: Analysis, out: CWriter) -> None:
LOWTools/cases_generator/target_generator.py50def write_tailcall_dispatch_table(analysis: Analysis, out: CWriter) -> None:
LOWTools/cases_generator/optimizer_generator.py160 def replace_opcode_if_evaluates_pure(
LOWTools/cases_generator/optimizer_generator.py444def generate_abstract_interpreter(
LOWTools/jit/example_trace_dump.py103def short_loop_with_side_exits(n):
LOWTools/jit/example_trace_dump.py137 ["def long_loop_with_side_exits(n):"]
LOWTools/jit/_dwarf.py109 def _parse_objdump_instructions(dump: str) -> list[tuple[int, str]]:
LOWTools/jit/_optimizers.py609 def _fixup_small_constant_pair(
LOWTools/jit/_optimizers.py683 def _fixup_large_constant_pair(
LOWTools/jit/_stencils.py260 def convert_labels_to_relocations(self) -> None:
LOWTools/jit/_stencils.py403 def _emit_global_offset_table(self) -> None:
LOWTools/scripts/var_access_benchmark.py75def read_classvar_from_instance(trials=trials, A=A):
LOWTools/scripts/sortperf.py58def list_sort_ascending_exchanged(size: int, rand: random.Random) -> list[float]:
LOWTools/scripts/sortperf.py68def list_sort_ascending_random(size: int, rand: random.Random) -> list[float]:
LOWTools/scripts/sortperf.py76def list_sort_ascending_one_percent(size: int, rand: random.Random) -> list[float]:
LOWTools/scripts/summarize_stats.py54def _load_metadata_from_source():
LOWTools/scripts/summarize_stats.py271 def get_specialization_success_failure(self, opcode: str) -> dict[str, int]:
LOWTools/scripts/summarize_stats.py280 def get_specialization_failure_total(self, opcode: str) -> int:
LOWTools/scripts/summarize_stats.py283 def get_specialization_failure_kinds(self, opcode: str) -> dict[str, int]:
LOWTools/scripts/summarize_stats.py205 def get_total_execution_count(self) -> int:
LOWTools/scripts/summarize_stats.py251 def get_specialization_counts(self, opcode: str) -> dict[str, int]:
LOWTools/scripts/summarize_stats.py324 def get_specialized_total_counts(self) -> tuple[int, int, int]:
LOWTools/scripts/summarize_stats.py745def calc_execution_count_table(prefix: str) -> RowCalculator:
LOWTools/scripts/summarize_stats.py833 def iter_pre_succ_pairs_tables(base_stats: Stats, head_stats: Stats | None = None):
LOWTools/scripts/summarize_stats.py882 def calc_specialization_table(opcode: str) -> RowCalculator:
12175 more matches not shown…
Over-Commented Block4234 hits · 3041 pts
SeverityFileLineSnippet
LOWPC/venvlauncher.c21#define MS_WINDOWS
LOWPC/zconf-ng.h61 */
LOWPC/zconf-ng.h121#include <stddef.h> /* for wchar_t and NULL */
LOWPC/zconf-ng.h141# define Z_LFS64
LOWPC/zconf-ng.h161
LOWPC/launcher2.c21#define MS_WINDOWS
LOWPC/launcher2.c401 // pointer and length into cmdline or a static string with the
LOWPC/launcher2.c421 // if true, treats 'tag' as a non-PEP 514 filter
LOWPC/pyshellext.cpp1// Support back to Vista
LOWPC/zbuild.h1#ifndef _ZBUILD_H
LOWPC/zbuild.h21#ifdef __STDC_VERSION__
LOWPC/zbuild.h41
LOWPC/zbuild.h61 typedef __int64 ssize_t;
LOWPC/zbuild.h81# define PREFIX2(x) ZLIB_ ## x
LOWPC/zbuild.h121 */
LOWPC/zbuild.h141# define ZSWAP16(q) _byteswap_ushort(q)
LOWPC/zbuild.h161# define ZSWAP64(q) bswap64(q)
LOWPC/zbuild.h181 ((q & 0x000000FF00000000u) >> 8u) | \
LOWPC/zbuild.h201#elif defined(_MSC_VER)
LOWPC/zbuild.h221#define PADSZ(bpos, pad) (((pad) - ((uintptr_t)(bpos) % (pad))) % (pad))
LOWPC/zbuild.h261# elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
LOWPC/zbuild.h301void __asan_storeN(void *, long);
LOWPC/pyconfig.h41 would be ISO C conforming). Neither renaming is feasible, so
LOWPC/pyconfig.h61#define HAVE_STRFTIME
LOWPC/pyconfig.h81#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
LOWPC/pyconfig.h161#define _Py_COMPILER ("[Clang " __clang_version__ "] 64 bit (AMD64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
LOWPC/pyconfig.h201#define _WIN32_WINNT Py_WINVER
LOWPC/pyconfig.h221#if defined(_M_IX86)
LOWPC/pyconfig.h301
LOWPC/pyconfig.h321#ifdef MS_COREDLL
LOWPC/pyconfig.h341# pragma comment(lib,"python316_d.lib")
LOWPC/pyconfig.h361# define SIZEOF_OFF_T 4
LOWPC/pyconfig.h381# define ALIGNOF_SIZE_T 4
LOWPC/pyconfig.h401/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
LOWPC/pyconfig.h741#define HAVE_GETHOSTBYNAME 1
LOWPC/msvcrtmodule.c21#include "malloc.h"
LOWPC/_wmimodule.cpp1//
LOWPC/python_uwp.cpp1/* Main program when embedded in a UWP application on Windows */
LOWPC/python_ver_rc.h1// Resource script for Python core DLL.
LOWPC/python_ver_rc.h21#define PYTHON_VERSION PY_VERSION "\0"
LOWPC/zconf.h21# define z_const const
LOWPC/zconf.h61#endif
LOWPC/zconf.h81 */
LOWPC/zconf.h101#endif
LOWPC/zconf.h161#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
LOWPC/zconf.h181# define SEEK_SET 0 /* Seek from beginning of file. */
LOWPC/clinic/msvcrtmodule.c.h721#endif /* !defined(MSVCRT_GETWCHE_METHODDEF) */
LOWPC/clinic/msvcrtmodule.c.h741#endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */
LOWPC/clinic/winreg.c.h1721
LOWPC/clinic/winreg.c.h1741 #define WINREG_HKEYTYPE___EXIT___METHODDEF
LOWPC/clinic/winreg.c.h1761 #define WINREG_DELETEKEY_METHODDEF
LOWPC/clinic/winreg.c.h1781 #define WINREG_EXPANDENVIRONMENTSTRINGS_METHODDEF
LOWPC/clinic/winreg.c.h1801 #define WINREG_QUERYINFOKEY_METHODDEF
LOWPC/clinic/winreg.c.h1821 #define WINREG_SETVALUEEX_METHODDEF
LOWMisc/platform_triplet.c1/* Detect platform triplet from builtin defines
LOWMisc/platform_triplet.c21# elif defined(__aarch64__)
LOWMisc/platform_triplet.c41# define LIBC_X32 gnux32
LOWMisc/platform_triplet.c61# define LIBC_MIPS gnu
LOWMisc/platform_triplet.c81# if defined(__SPE__)
LOWMisc/platform_triplet.c101# define LIBC_LA muslf32
4174 more matches not shown…
Cross-Language Confusion415 hits · 2336 pts
SeverityFileLineSnippet
HIGHPlatforms/emscripten/prepare_external_wasm.py16 bytes.push(parseInt(hex.substr(i, 2), 16));
HIGHPlatforms/emscripten/__main__.py441 f"source ~/.nvm/nvm.sh && nvm install {node_version}",
HIGHPlatforms/emscripten/__main__.py450 f"source ~/.nvm/nvm.sh && nvm which {node_version}",
HIGHPlatforms/emscripten/__main__.py537 elif which realpath > /dev/null 2>&1 && realpath --version > /dev/null 2>&1 && realpath --version | grep GNU
HIGHTools/unicode/genmap_schinese.py105 print("Generating GB2312 && GBK encode map...")
HIGHTools/unicode/genmap_japanese.py180 print("Generating JIS X 0208 && JIS X 0212 encode map...")
HIGHTools/cases_generator/opcode_metadata_generator.py350 out.emit(f"if (pseudo < 256 || pseudo >= {256+table_size}) {{\n")
HIGHTools/cases_generator/tier1_generator.py272 if reachable: # type: ignore[possibly-undefined]
HIGHTools/cases_generator/uop_metadata_generator.py128 stack.pop(var, null)
HIGHTools/cases_generator/stack.py230 self.push(Local.register(f"_stack_item_{i}"))
HIGHTools/cases_generator/stack.py291 self.logical_sp = self.logical_sp.push(var.item)
HIGHTools/cases_generator/stack.py324 var_offset = var_offset.push(var.item)
HIGHTools/cases_generator/stack.py421 local = stack.pop(var, null)
HIGHTools/cases_generator/stack.py429 stack.push(local)
HIGHTools/cases_generator/stack.py505 f"Expected '{undefined}' to be defined before '{out.name}'"
HIGHTools/cases_generator/stack.py510 self.stack.push(out)
HIGHTools/cases_generator/stack.py565 offset = offset.push(ouput)
HIGHTools/cases_generator/stack.py567 stack.push(var)
HIGHTools/cases_generator/stack.py644 self.stack.push(out)
HIGHTools/cases_generator/stack.py714 self.stack.push(output)
HIGHTools/cases_generator/stack.py742 self.stack.push(output)
HIGHTools/cases_generator/tier2_generator.py55 stack.pop(var, null)
HIGHTools/cases_generator/tier2_generator.py57 stack.push(Local.undefined(var))
HIGHTools/cases_generator/optimizer_generator.py117 stack.pop(var, null)
HIGHTools/cases_generator/optimizer_generator.py123 offset = offset.push(var)
HIGHTools/cases_generator/optimizer_generator.py126 stack.push(local)
HIGHTools/cases_generator/optimizer_generator.py427 for var in storage.inputs: # type: ignore[possibly-undefined]
HIGHTools/clinic/libclinic/clanguage.py195 condition = f"kwnames && PyTuple_Size(kwnames) && {condition}"
HIGHTools/clinic/libclinic/clanguage.py197 condition = f"kwnames && PyTuple_GET_SIZE(kwnames) && {condition}"
HIGHTools/clinic/libclinic/clanguage.py200 condition = f"kwargs && PyDict_Size(kwargs) && {condition}"
HIGHTools/clinic/libclinic/clanguage.py202 condition = f"kwargs && PyDict_GET_SIZE(kwargs) && {condition}"
HIGHTools/clinic/libclinic/parse_args.py405 if (nargs || (kwnames && PyTuple_GET_SIZE(kwnames))) {{
HIGHTools/clinic/libclinic/converters.py124 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py236 if (ival == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py273 if (ival == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py335 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py383 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py412 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py483 if (ival == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py499 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py539 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py556 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py578 if ({paramname} == -1 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py620 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py629 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py653 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{
HIGHTools/clinic/libclinic/converters.py662 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{
HIGHTools/peg_generator/pegen/c_generator.py399 self.print("if (p->level++ == MAXSTACK || _Py_ReachedRecursionLimitWithMargin(PyThreadState_Get(), 1)) {")
HIGHTools/peg_generator/pegen/c_generator.py537 self.print("if (p->mark == p->fill && _PyPegen_fill_token(p) < 0) {")
HIGHTools/peg_generator/pegen/c_generator.py586 self.print("if (_raw == NULL || p->mark <= _resmark)")
HIGHTools/peg_generator/pegen/c_generator.py660 self.print("if (_n == 0 || p->error_indicator) {")
HIGHTools/peg_generator/pegen/c_generator.py742 self.print("if ((_res == NULL || p->error_indicator) && PyErr_Occurred()) {")
HIGHParser/asdl_c.py659 self.emit("if (tmp == NULL || tmp == Py_None) {", depth)
HIGHParser/asdl_c.py1336 if (kwargs && PyDict_Update(payload, kwargs) < 0) {
HIGHParser/asdl_c.py1441 if (i == 0 && length > 2) {
HIGHParser/asdl_c.py1758 if (i == -1 && PyErr_Occurred())
HIGHParser/asdl_c.py2124 assert(0 <= mode && mode <= 2);
HIGHMac/BuildScript/build-installer.py288 install='make TCL_LIBRARY=%(TCL_LIBRARY)s && make install TCL_LIBRARY=%(TCL_LIBRARY)s DESTDIR=%(DESTDIR)s'
HIGHMac/BuildScript/build-installer.py306 install='make TCL_LIBRARY=%(TCL_LIBRARY)s TK_LIBRARY=%(TK_LIBRARY)s && make install TCL_LIBRARY=%(TCL_LIBR
HIGHMac/BuildScript/build-installer.py355 install='make && make install DESTDIR=%s && cd %s/usr/local/lib && ln -fs ../../../Library/Frameworks/Pyth
355 more matches not shown…
Deep Nesting1534 hits · 1330 pts
SeverityFileLineSnippet
LOWPC/layout/main.py129
LOWPC/layout/main.py385
LOWPC/layout/main.py459
LOWPC/layout/support/constants.py45
LOWPC/layout/support/appxmanifest.py334
LOWPC/layout/support/filesets.py42
LOWPlatforms/Apple/__main__.py275
LOWPlatforms/Apple/__main__.py286
LOWPlatforms/Apple/__main__.py778
LOWPlatforms/Apple/testbed/__main__.py286
LOWPlatforms/emscripten/wasm_assets.py136
LOWPlatforms/Android/__main__.py459
LOWPlatforms/Android/__main__.py482
LOWPlatforms/Android/__main__.py764
LOWTools/picklebench/memory_dos_impact.py81
LOWTools/picklebench/memory_dos_impact.py668
LOWTools/picklebench/memory_dos_impact.py830
LOWTools/ssl/multissltests.py518
LOWTools/gdb/libpython.py674
LOWTools/gdb/libpython.py2071
LOWTools/gdb/libpython.py478
LOWTools/gdb/libpython.py1393
LOWTools/gdb/libpython.py1504
LOWTools/freeze/parsesetup.py48
LOWTools/freeze/makefreeze.py32
LOWTools/freeze/freeze.py111
LOWTools/freeze/checkextensions.py8
LOWTools/freeze/makeconfig.py9
LOWTools/freeze/test/freeze.py67
LOWTools/c-analyzer/table-file.py19
LOWTools/c-analyzer/table-file.py59
LOWTools/c-analyzer/distutils/_msvccompiler.py26
LOWTools/c-analyzer/distutils/ccompiler.py428
LOWTools/c-analyzer/distutils/msvc9compiler.py250
LOWTools/c-analyzer/distutils/util.py13
LOWTools/c-analyzer/distutils/util.py113
LOWTools/c-analyzer/distutils/cygwinccompiler.py57
LOWTools/c-analyzer/c_parser/info.py365
LOWTools/c-analyzer/c_parser/info.py724
LOWTools/c-analyzer/c_parser/info.py47
LOWTools/c-analyzer/c_parser/info.py77
LOWTools/c-analyzer/c_parser/info.py163
LOWTools/c-analyzer/c_parser/info.py265
LOWTools/c-analyzer/c_parser/info.py327
LOWTools/c-analyzer/c_parser/info.py523
LOWTools/c-analyzer/c_parser/info.py640
LOWTools/c-analyzer/c_parser/info.py664
LOWTools/c-analyzer/c_parser/info.py1175
LOWTools/c-analyzer/c_parser/info.py1403
LOWTools/c-analyzer/c_parser/info.py1498
LOWTools/c-analyzer/c_parser/info.py1606
LOWTools/c-analyzer/c_parser/__main__.py63
LOWTools/c-analyzer/c_parser/match.py61
LOWTools/c-analyzer/c_parser/match.py144
LOWTools/c-analyzer/c_parser/parser/_compound_decl_body.py51
LOWTools/c-analyzer/c_parser/parser/_common.py10
LOWTools/c-analyzer/c_parser/parser/__init__.py169
LOWTools/c-analyzer/c_parser/parser/_global.py56
LOWTools/c-analyzer/c_parser/parser/_func_body.py46
LOWTools/c-analyzer/c_parser/parser/_func_body.py190
1474 more matches not shown…
Decorative Section Separators400 hits · 984 pts
SeverityFileLineSnippet
MEDIUMTools/unicode/makeunicodedata.py43# --------------------
MEDIUMTools/unicode/makeunicodedata.py171# --------------------------------------------------------------------
MEDIUMTools/unicode/makeunicodedata.py494# --------------------------------------------------------------------
MEDIUMTools/unicode/makeunicodedata.py707# --------------------------------------------------------------------
MEDIUMTools/unicode/makeunicodedata.py1012# --------------------------------------------------------------------
MEDIUMTools/scripts/sortperf.py28# ===============
MEDIUMTools/scripts/sortperf.py30# ===============
MEDIUMParser/asdl.py1#-------------------------------------------------------------------------------
MEDIUMParser/asdl.py21#-------------------------------------------------------------------------------
MEDIUMLib/heapq.py412# ==============================================
MEDIUMLib/heapq.py442# -----------------------------------------------
MEDIUMLib/heapq.py462# ----------------------
MEDIUMLib/heapq.py469# ----------------------
MEDIUMLib/numbers.py50## ----------------
MEDIUMLib/random.py203 ## -------------------------------------------------------
MEDIUMLib/random.py277 ## --------------------------------------------------------
MEDIUMLib/random.py889## ------------------------------------------------------------------
MEDIUMLib/random.py930# ----------------------------------------------------------------------
MEDIUMLib/random.py964## ------------------------------------------------------
MEDIUMLib/random.py1005## ------------------------------------------------------
MEDIUMLib/random.py1012# ------------------------------------------------------
MEDIUMLib/argparse.py106# =============================
MEDIUMLib/argparse.py108# =============================
MEDIUMLib/argparse.py157# ===============
MEDIUMLib/argparse.py159# ===============
MEDIUMLib/argparse.py239 # ===============================
MEDIUMLib/argparse.py241 # ===============================
MEDIUMLib/argparse.py291 # ========================
MEDIUMLib/argparse.py293 # ========================
MEDIUMLib/argparse.py335 # =======================
MEDIUMLib/argparse.py337 # =======================
MEDIUMLib/argparse.py866# =====================
MEDIUMLib/argparse.py868# =====================
MEDIUMLib/argparse.py1576 # ====================
MEDIUMLib/argparse.py1578 # ====================
MEDIUMLib/argparse.py1587 # ==================================
MEDIUMLib/argparse.py1589 # ==================================
MEDIUMLib/argparse.py918# ==============
MEDIUMLib/argparse.py920# ==============
MEDIUMLib/argparse.py1439# ==============
MEDIUMLib/argparse.py1441# ==============
MEDIUMLib/argparse.py1500# ===========================
MEDIUMLib/argparse.py1502# ===========================
MEDIUMLib/argparse.py1607 # =======================
MEDIUMLib/argparse.py1609 # =======================
MEDIUMLib/argparse.py2040 # =======================
MEDIUMLib/argparse.py2042 # =======================
MEDIUMLib/argparse.py2055 # ==================================
MEDIUMLib/argparse.py2057 # ==================================
MEDIUMLib/argparse.py2113 # =====================================
MEDIUMLib/argparse.py2115 # =====================================
MEDIUMLib/argparse.py2676 # ========================
MEDIUMLib/argparse.py2678 # ========================
MEDIUMLib/argparse.py2708 # ========================
MEDIUMLib/argparse.py2710 # ========================
MEDIUMLib/argparse.py2808 # =======================
MEDIUMLib/argparse.py2810 # =======================
MEDIUMLib/argparse.py2859 # =====================
MEDIUMLib/argparse.py2861 # =====================
MEDIUMLib/argparse.py2902 # ===============
340 more matches not shown…
Cross-File Repetition191 hits · 955 pts
SeverityFileLineSnippet
HIGHPC/_testconsole.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}
HIGHPC/msvcrtmodule.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}
HIGHModules/overlapped.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}
HIGHModules/_multiprocessing/multiprocessing.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}
HIGHTools/c-analyzer/distutils/_msvccompiler.py0return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program s
HIGHTools/c-analyzer/distutils/msvc9compiler.py0return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program s
HIGHTools/c-analyzer/distutils/msvccompiler.py0return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program s
HIGHTools/c-analyzer/distutils/_msvccompiler.py0concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class.
HIGHTools/c-analyzer/distutils/msvc9compiler.py0concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class.
HIGHTools/c-analyzer/distutils/msvccompiler.py0concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class.
HIGHTools/c-analyzer/distutils/msvc9compiler.py0return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.v
HIGHTools/c-analyzer/distutils/msvccompiler.py0return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.v
HIGHLib/ctypes/util.py0return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.v
HIGHLib/lzma.py0return the file descriptor for the underlying file.
HIGHLib/bz2.py0return the file descriptor for the underlying file.
HIGHLib/compression/zstd/_zstdfile.py0return the file descriptor for the underlying file.
HIGHLib/lzma.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e
HIGHLib/bz2.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e
HIGHLib/compression/zstd/_zstdfile.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e
HIGHLib/lzma.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati
HIGHLib/bz2.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati
HIGHLib/compression/zstd/_zstdfile.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0return the next decoded line from the input stream.
HIGHLib/codecs.py0return the next decoded line from the input stream.
HIGHLib/codecs.py0return the next decoded line from the input stream.
HIGHLib/turtle.py0'forward' method, which canvas itself has inherited...
HIGHLib/turtle.py0'forward' method, which canvas itself has inherited...
HIGHLib/turtle.py0'forward' method, which canvas itself has inherited...
HIGHLib/turtle.py0'forward' method, which canvas itself has inherited...
HIGHLib/turtle.py0'forward' method, which canvas itself has inherited...
HIGHLib/turtle.py0'forward' method, which canvas itself has inherited...
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
HIGHLib/mailbox.py0return a file-like representation or raise a keyerror.
HIGHLib/mailbox.py0return a file-like representation or raise a keyerror.
HIGHLib/mailbox.py0return a file-like representation or raise a keyerror.
HIGHLib/mailbox.py0return a file-like representation or raise a keyerror.
HIGHLib/mailbox.py0return a file-like representation or raise a keyerror.
HIGHLib/mailbox.py0return true if the keyed message exists, false otherwise.
HIGHLib/mailbox.py0return true if the keyed message exists, false otherwise.
HIGHLib/mailbox.py0return true if the keyed message exists, false otherwise.
HIGHLib/mailbox.py0return true if the keyed message exists, false otherwise.
HIGHLib/mailbox.py0return a string representation or raise a keyerror.
131 more matches not shown…
Excessive Try-Catch Wrapping729 hits · 802 pts
SeverityFileLineSnippet
LOWMisc/mypy/_colorize.py571 except Exception:
MEDIUMTools/picklebench/memory_dos_impact.py531 print("Error: Could not find JSON output from baseline", file=sys.stderr)
MEDIUMTools/picklebench/memory_dos_impact.py538 print(f"Error: Could not parse baseline JSON output: {e}", file=sys.stderr)
MEDIUMTools/picklebench/memory_dos_impact.py571 print(f"Error running baseline benchmark:", file=sys.stderr)
MEDIUMTools/picklebench/memory_dos_impact.py579 print("Error: Baseline benchmark timed out", file=sys.stderr)
MEDIUMTools/picklebench/memory_dos_impact.py1014 print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr)
MEDIUMTools/picklebench/memory_dos_impact.py1050 print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr)
LOWTools/ssl/multissltests.py570 except Exception as e:
LOWTools/gdb/libpython.py1214 except Exception as ex:
MEDIUMTools/gdb/libpython.py257def safe_tp_name(self):
LOWTools/c-analyzer/c_parser/__init__.py28 except Exception:
LOWTools/c-analyzer/c_parser/info.py215 except Exception:
MEDIUMTools/c-analyzer/c_parser/info.py212def _make(cls, iterable):
LOWTools/c-analyzer/c_parser/source.py29 except Exception:
LOWTools/c-analyzer/cpython/_capi.py365 except Exception as exc:
LOWTools/c-analyzer/cpython/__main__.py174 except Exception:
LOWTools/c-analyzer/c_common/scriptutil.py227 except Exception as exc:
LOWTools/unicode/listcodecs.py25 except Exception as reason:
LOWTools/cases_generator/generators_common.py320 except Exception as ex:
LOWTools/inspection/benchmark_external_inspection.py551 except Exception as e:
LOWTools/clinic/libclinic/dsl_parser.py1005 except Exception as e:
LOWTools/peg_generator/pegen/first_sets.py139 except Exception as err:
LOWTools/peg_generator/pegen/grammar_visualizer.py55 except Exception as err:
LOWTools/peg_generator/pegen/__main__.py42 except Exception as err:
LOWTools/peg_generator/pegen/__main__.py67 except Exception as err:
LOWParser/asdl.py153 except Exception as e:
MEDIUMParser/asdl.py154 print("Error visiting %r: %s" % (obj, e))
LOWLib/shutil.py105 except Exception as err:
LOWLib/shutil.py147 except Exception as err:
LOWLib/shutil.py196 except Exception as err:
LOWLib/pkgutil.py83 except Exception:
LOWLib/rlcompleter.py159 except Exception:
LOWLib/zipimport.py575 except Exception:
LOWLib/zipimport.py605 except Exception:
LOWLib/zipimport.py669 except Exception:
LOWLib/zipimport.py675 except Exception:
MEDIUMLib/zipimport.py295def _read_directory(archive):
LOWLib/wave.py413 except Exception:
LOWLib/weakref.py569 except Exception:
LOWLib/traceback.py1160 except Exception as e:
LOWLib/traceback.py1440 except Exception:
LOWLib/traceback.py1905 except Exception:
LOWLib/traceback.py1917 except Exception:
LOWLib/traceback.py1925 except Exception:
LOWLib/traceback.py1950 except Exception:
MEDIUMLib/code.py155 print('Error in sys.excepthook:', file=sys.stderr)
MEDIUMLib/pydoc.py591def repr_instance(self, x, level):
LOWLib/pydoc.py948 except Exception:
LOWLib/pydoc.py994 except Exception:
LOWLib/pydoc.py1440 except Exception:
LOWLib/pydoc.py2657 except Exception as exc:
LOWLib/pydoc.py2247 except Exception:
LOWLib/pydoc.py2411 except Exception as err:
LOWLib/socketserver.py316 except Exception:
LOWLib/socketserver.py629 except Exception:
LOWLib/socketserver.py695 except Exception:
MEDIUMLib/pdb.py204 print(f'Error: {target} does not exist')
MEDIUMLib/pdb.py207 print(f'Error: {target} is a directory')
MEDIUMLib/pdb.py904def _get_asyncio_task(self):
MEDIUMLib/pdb.py1391def _complete_indentation(self, text, line, begidx, endidx):
669 more matches not shown…
Unused Imports824 hits · 760 pts
SeverityFileLineSnippet
LOWPC/layout/main.py24
LOWPC/layout/main.py25
LOWPC/layout/main.py26
LOWPC/layout/main.py27
LOWPC/layout/main.py28
LOWPC/layout/main.py29
LOWPC/layout/main.py30
LOWPC/layout/main.py31
LOWPC/layout/main.py32
LOWPC/layout/main.py33
LOWPC/layout/main.py34
LOWPC/layout/__main__.py4
LOWPC/layout/support/pymanager.py1
LOWPC/layout/support/arch.py1
LOWPC/layout/support/arch.py2
LOWPC/layout/support/arch.py3
LOWPC/layout/support/appxmanifest.py16
LOWPC/layout/support/props.py7
LOWPC/layout/support/pip.py14
LOWPC/layout/support/nuspec.py8
LOWMisc/mypy/make_symlinks.py2
LOWPlatforms/Apple/__main__.py36
LOWTools/picklebench/memory_dos_impact.py27
LOWTools/picklebench/memory_dos_impact.py35
LOWTools/picklebench/memory_dos_impact.py39
LOWTools/ssl/multissltests.py25
LOWTools/c-analyzer/distutils/util.py11
LOWTools/c-analyzer/c_parser/__init__.py76
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py264
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py264
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py271
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py271
LOWTools/c-analyzer/c_parser/preprocessor/common.py9
LOWTools/c-analyzer/c_parser/preprocessor/common.py9
LOWTools/c-analyzer/c_parser/preprocessor/clang.py2
LOWTools/c-analyzer/c_parser/preprocessor/clang.py2
LOWTools/unicode/genmap_korean.py9
LOWTools/unicode/genmap_schinese.py10
LOWTools/unicode/genmap_tchinese.py8
LOWTools/unicode/genmap_japanese.py9
LOWTools/cases_generator/opcode_metadata_generator.py22
LOWTools/cases_generator/tier1_generator.py8
LOWTools/cases_generator/tier1_generator.py8
LOWTools/cases_generator/tier1_generator.py21
LOWTools/cases_generator/tier1_generator.py21
LOWTools/cases_generator/tier1_generator.py21
LOWTools/cases_generator/tier1_generator.py33
LOWTools/cases_generator/generators_common.py3
LOWTools/cases_generator/generators_common.py17
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
LOWTools/cases_generator/parser.py1
764 more matches not shown…
Self-Referential Comments289 hits · 725 pts
SeverityFileLineSnippet
MEDIUMPlatforms/Apple/__main__.py635 # Create a simlink for the fat library
MEDIUMPlatforms/Apple/__main__.py710 # Create an XCframework
MEDIUMTools/freeze/freeze.py440 # Create a module definition for the bootstrap C code.
MEDIUMTools/freeze/checkextensions_win32.py58 # Create a table of frozen extensions
MEDIUMTools/unicode/dawg.py18# This class represents a node in the directed acyclic word graph (DAWG). It
MEDIUMTools/unicode/mkstringprep.py112print("""# This file is generated by mkstringprep.py. DO NOT EDIT.
MEDIUMParser/asdl.py30# The following classes define nodes into which the ASDL description is parsed.
MEDIUMMac/BuildScript/build-installer.py1755 # Create the installer
MEDIUMLib/_pyio.py274# Define a default pure-Python implementation for open_code()
MEDIUMLib/ipaddress.py1486 """This class represents and manipulates 32-bit IPv4 network + addresses..
MEDIUMLib/ipaddress.py2280 """This class represents and manipulates 128-bit IPv6 networks.
MEDIUMLib/webbrowser.py780 # Create an NSURL object representing the URL
MEDIUMLib/_compat_pickle.py1# This module is used to map the old Python 2 names to the new names used in
MEDIUMLib/bdb.py885 # The following methods can be called by clients to use
MEDIUMLib/bdb.py936 # This method is more useful to debug a single function call.
MEDIUMLib/zipapp.py134 # Create the list of files to add to the archive now, in case
MEDIUMLib/gettext.py13# This module represents the integration of work, contributions, feedback, and
MEDIUMLib/modulefinder.py658 # Create the module finder and turn its crank
MEDIUMLib/hashlib.py133 # This function is only used until the module has been initialized.
MEDIUMLib/hashlib.py274 # The following code can be simplified in Python 3.19
MEDIUMLib/subprocess.py2158 # This method is called (indirectly) by __del__, so it cannot
MEDIUMLib/subprocess.py2431 # This method is called from the _communicate_with_*() methods
MEDIUMLib/profile.py438 # This method is more useful to profile a single function call.
MEDIUMLib/code.py162 # This method is being overwritten in
MEDIUMLib/pydoc.py757 # Create a link for methods like 'self.method(...)'
MEDIUMLib/types.py329 # The following code is primarily to support functions that
MEDIUMLib/pdb.py697 """This method is called when there is the remote possibility
MEDIUMLib/pdb.py706 """This function is called when we stop or break at this line."""
MEDIUMLib/pdb.py739 """This function is called when a return trap is set here."""
MEDIUMLib/pdb.py748 """This function is called if an exception occurs,
MEDIUMLib/threading.py141 """This class implements reentrant lock objects.
MEDIUMLib/threading.py324 # This method is called only if _lock doesn't have _is_owned().
MEDIUMLib/threading.py454 """This class implements semaphore objects.
MEDIUMLib/threading.py1445 # Create a local namespace to ensure that variables remain alive
MEDIUMLib/threading.py1689# Create the main thread object,
MEDIUMLib/platform.py9# This module is maintained by Marc-Andre Lemburg <mal@egenix.com>.
MEDIUMLib/pstats.py74 """This class is used for creating reports from data generated by the
MEDIUMLib/pstats.py326 # The following functions support actual printing of reports
MEDIUMLib/pstats.py557 """This class provides a generic function for comparing any two tuples.
MEDIUMLib/pstats.py600# The following functions combine statistics for pairs functions.
MEDIUMLib/pstats.py637# The following functions support printing of reports
MEDIUMLib/inspect.py29# This module is in the public domain. No warranties.
MEDIUMLib/_opcode_metadata.py1# This file is generated by Tools/cases_generator/py_metadata_generator.py
MEDIUMLib/annotationlib.py167 # Create a new locals dict if necessary,
MEDIUMLib/_pydatetime.py494 # This function is intended to validate datetimes, but because
MEDIUMLib/fractions.py183 """This class implements rational numbers.
MEDIUMLib/_ast_unparse.py1# This module contains ``ast.unparse()``, defined here
MEDIUMLib/mailbox.py622 # This method is for backward compatibility only.
MEDIUMLib/ast.py628 # The following code is for backward compatibility.
MEDIUMLib/doctest.py153 # Create a new flag unless `name` is already known.
MEDIUMLib/doctest.py676 # Create an Example, and add it to the list.
MEDIUMLib/doctest.py1299 # Create a fake output target for capturing doctest output.
MEDIUMLib/_pylong.py147 # This function implements a divide-and-conquer algorithm that is
MEDIUMLib/_pylong.py231 # This function implements a divide-and-conquer algorithm making use
MEDIUMLib/dataclasses.py381# This function is used instead of exposing Field creation directly,
MEDIUMLib/dataclasses.py530 # Create an __annotate__ function for a dataclass
MEDIUMLib/dataclasses.py1203 # Create a comparison function. If the fields in the object are
MEDIUMLib/dataclasses.py1229 # Create a class doc-string lazily via descriptor protocol
MEDIUMLib/dataclasses.py1349 # Create a new dict for our new class.
MEDIUMLib/dataclasses.py1822 # Create the new object, which calls __init__() and
229 more matches not shown…
AI Slop Vocabulary89 hits · 167 pts
SeverityFileLineSnippet
MEDIUMTools/picklebench/memory_dos_impact.py282 """Run all benchmarks and return comprehensive results."""
MEDIUMTools/picklebench/memory_dos_impact.py390 """Run comprehensive antagonistic test suite."""
MEDIUMTools/picklebench/memory_dos_impact.py447 """Run comprehensive test suite across all sizes and types."""
LOWTools/c-analyzer/distutils/unixccompiler.py23# * optimization/debug/warning flags; we just use whatever's in Python's
LOWTools/unicode/dawg.py347 # we don't know position of the edge yet, just use something big as
LOWTools/cases_generator/generators_common.py55 # Not relative to root, just return original path.
MEDIUMTools/inspection/benchmark_external_inspection.py313 """Print comprehensive benchmark results"""
LOWTools/patchcheck/patchcheck.py142 # We just use an existence check here as:
LOWTools/peg_generator/pegen/build.py58 # To further add to the shared builds fun on Unix, we can't just add
MEDIUMInclude/internal/pycore_object.h801 // Essentially _PyObject_GET_WEAKREFS_LISTPTR_FROM_OFFSET():
MEDIUMObjects/mimalloc/prim/osx/alloc-override-zone.c400// it seems less robust than using interpose.
LOWMac/BuildScript/build-installer.py1186 # by child processes from their parents. We used to just set
MEDIUMMac/BuildScript/build-installer.py1340 # TODO: make this more robust! test_sysconfig_module of
LOWLib/shutil.py1628 # what file suffixes are executable, so just pass on cmd as-is.
MEDIUMLib/trace.py25# Bioreason or Mojam Media be used in advertising or publicity pertaining to
LOWLib/difflib.py1427 # Handle case where no user markup is to be added, just return line of
LOWLib/difflib.py1816 # if blank line or context separator, just add it to the output list
LOWLib/difflib.py1821 # if line text doesn't need wrapping, just add it to the output list
LOWLib/ftplib.py405 # then we'll just use anonymous@
LOWLib/optparse.py565 # Check all the attributes we just set. There are lots of
LOWLib/pdb.py3366 # No logic applied whatsoever, just pass the raw reply back.
LOWLib/threading.py293 # these override the default implementations (which just call
MEDIUMLib/turtle.py700 """Set focus on canvas (in order to collect key-events)
MEDIUMLib/turtle.py1457 """Set focus on TurtleScreen (in order to collect key-events)
MEDIUMLib/doctest.py1777 # in conjunction with the ELLIPSIS flag.
LOWLib/argparse.py2480 # for regular arguments, just add them back into the list
LOWLib/dataclasses.py574 # via object.__setattr__. Otherwise, just use a simple
LOWLib/dataclasses.py630 # just use the class attribute that contains the default.
LOWLib/graphlib.py287# successors, so when backtracking to a shallower level we can just call
LOWLib/tarfile.py1532 # Normally, we could just use "utf-8" as the encoding and "strict"
LOWLib/_pydecimal.py3315 # otherwise, simply return the adjusted exponent of self, as a
LOWLib/ntpath.py593 # just return the old path.
LOWLib/test/test_winsound.py19# even *should* play. Instead of guessing, just call the function and assume
MEDIUMLib/test/test_wsgiref.py445 # Not comprehensive, just a few random header names
MEDIUMLib/test/test_logging.py8# not be used in advertising or publicity pertaining to distribution
LOWLib/test/test_urllib2.py1165 # required, so just use a dummy one to instantiate
MEDIUMLib/test/test_pdb.py1# A test suite for pdb; not very comprehensive at the moment.
MEDIUMLib/test/test_lzma.py517 # Test robust handling of non-LZMA data following the compressed stream(s).
MEDIUMLib/test/test_decimal.py5880 """The C Context docstrings use 'x' in order to prevent confusion
MEDIUMLib/test/test_grammar.py1970 # This is not intended to be a comprehensive test, rather just to be few
MEDIUMLib/test/test_bytes.py2330 # comprehensive for things like partition, etc.
LOWLib/test/test_py_compile.py284 # assert_python_* helpers don't return proc object. We'll just use
LOWLib/test/test_subprocess.py1487 # Subsequent invocations should just return the returncode
LOWLib/test/test_subprocess.py1493 # Subsequent invocations should just return the returncode
MEDIUMLib/test/test_urllib2net.py35# Connecting to remote hosts is flaky. Make it more robust by retrying
MEDIUMLib/test/test_startfile.py29 # means the test harness provided directory isn't a safe option.
MEDIUMLib/test/test_signal.py1396 # a signal is ignored due to the aforementioned
MEDIUMLib/test/test_socketserver.py54 # Don't raise an exception; it would be caught by the test harness.
LOWLib/test/test_unicode_file.py120 # The 'test' functions are unittest entry points, and simply call our
LOWLib/test/test_long.py1240 # nonnegative second argument: round(x, n) should just return x
LOWLib/test/test_argparse.py273 # redirected, simply call the function and let the enclosing function
LOWLib/test/test_types.py522 # So, just use a sign flag
LOWLib/test/test_multiprocessing_main_handling.py81# so we just use "int" as a passthrough operation below
LOWLib/test/test_gdb/test_pretty_print.py117 # We cannot simply call locale.getpreferredencoding() here,
MEDIUMLib/test/test_os/test_os.py2510 # We spawn a new process to make the test more robust (if getrlimit()
LOWLib/test/test_pyrepl/test_windows_console.py603 # because for simplicity we just use
LOWLib/test/test_unittest/test_loader.py671 # XXX Should this raise a ValueError or just return an empty TestSuite?
LOWLib/test/test_unittest/testmock/testmock.py1200 # need to do this because MagicMock.mock_calls used to just return
MEDIUMLib/test/support/asyncore.py20# Rushing not be used in advertising or publicity pertaining to
MEDIUMLib/test/support/asynchat.py20# Rushing not be used in advertising or publicity pertaining to
29 more matches not shown…
Docstring Block Structure32 hits · 160 pts
SeverityFileLineSnippet
HIGHTools/picklebench/memory_dos_impact.py510Extract JSON data from subprocess output. Skips any print statements before the JSON output and parses the JSON
HIGHLib/ipaddress.py26Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHLib/ipaddress.py55Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHLib/ipaddress.py84Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHLib/ipaddress.py118Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat
HIGHLib/ipaddress.py302Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'),
HIGHLib/ipaddress.py438Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi
HIGHLib/ipaddress.py468Return prefix length from a numeric string Args: prefixlen_str: The string to be converted
HIGHLib/ipaddress.py493Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver
HIGHLib/ipaddress.py789Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28')
HIGHLib/ipaddress.py864Compare two IP objects. This is only concerned about the comparison of the integer representation of th
HIGHLib/ipaddress.py922The subnets which join to make the current subnet. In the case that self contains only one IP (self._pr
HIGHLib/ipaddress.py975The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi
HIGHLib/ipaddress.py1181Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str.
HIGHLib/ipaddress.py1207Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R
HIGHLib/ipaddress.py1650Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns:
HIGHLib/ipaddress.py1763Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse.
HIGHLib/ipaddress.py1837Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address.
HIGHLib/selectors.py22Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns
HIGHLib/selectors.py101Register a file object. Parameters: fileobj -- file object or file descriptor events -- events
HIGHLib/selectors.py124Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns:
HIGHLib/selectors.py142Change a registered file object monitored events or attached data. Parameters: fileobj -- file object o
HIGHLib/getpass.py69Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default:
HIGHLib/test/test_external_inspection.py85 Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected
HIGHLib/test/test_external_inspection.py127 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.py42 Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected
HIGHLib/profiling/sampling/_sync_coordinator.py39 Validate and parse command line arguments. Args: args: Command line arguments including script name
HIGHLib/concurrent/futures/_base.py194An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (pos
HIGHLib/concurrent/futures/_base.py423Return the result of the call that the future represents. Args: timeout: The number of seconds to w
HIGHLib/concurrent/futures/_base.py458Return the exception raised by the call that the future represents. Args: timeout: The number of se
HIGHLib/concurrent/futures/_base.py605Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume
HIGHLib/concurrent/futures/process.py836Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume
Redundant / Tautological Comments108 hits · 144 pts
SeverityFileLineSnippet
LOWTools/c-analyzer/c_common/scriptutil.py26 # Check if "installed".
LOWTools/msi/csv_to_wxs.py112 # Check if the file matches. If so, we don't want to touch it so
LOWTools/cases_generator/stack.py9# Set this to true for voluminous output showing state of stack and locals
LOWTools/inspection/benchmark_external_inspection.py459 # Check if it's still running
LOWTools/inspection/benchmark_external_inspection.py540 # Print results
LOWTools/peg_generator/pegen/grammar.py30 # Check if there are repeated rules in "rules"
LOWPCbuild/get_external.py134 # Check if the dependency already exists in externals/ directory
LOWLib/dis.py584 # Set argval to the dereferenced value of the argument when
LOWLib/_py_abc.py131 # Check if it's a direct subclass
LOWLib/_py_abc.py135 # Check if it's a subclass of a registered class (recursive)
LOWLib/_py_abc.py140 # Check if it's a subclass of a subclass (recursive)
LOWLib/zipimport.py307 # Check if there's a comment.
LOWLib/pyclbr.py143 # Check if it is a built-in module; we don't do much for these.
LOWLib/heapq.py281 # Set childpos to index of smaller child.
LOWLib/heapq.py317 # Set childpos to index of larger child.
LOWLib/hashlib.py142 # Check if the context security policy blocks the digest or not
LOWLib/traceback.py1505 # Check if it works
LOWLib/traceback.py1830 # Check if attr_name is a descriptor - if so, skip it
LOWLib/types.py316 # Check if 'func' is a coroutine function.
LOWLib/types.py321 # Check if 'func' is a generator function.
LOWLib/pdb.py231 # Open the file each time because the file may be modified
LOWLib/pdb.py2998 # Check if the interpreter is finalizing every quarter of a second.
LOWLib/poplib.py232 # Check if the response has enough elements
LOWLib/plistlib.py676 # Write file header
LOWLib/_py_warnings.py468 # Check if message is already a Warning object
LOWLib/_py_warnings.py622 # Print message and context
LOWLib/_osx_support.py413 # Check if the SDK that is used during compilation actually exists,
LOWLib/compileall.py87 # Check if this is a system where ProcessPoolExecutor can function.
LOWLib/doctest.py1830 # Check if we should use diff.
LOWLib/doctest.py2227 # Read the file, convert it to a test, and run it.
LOWLib/smtplib.py427 # Check if multiline response.
LOWLib/graphlib.py174 # Check if we know about this node (it was added previously using add()
LOWLib/tarfile.py1224 # Check if one of the fields contains surrogate characters and thereby
LOWLib/tarfile.py1509 # Check if the pax header contains a hdrcharset field. This tells us
LOWLib/typing.py1279 # Check if any base that occurs after us in `bases` is either itself a
LOWLib/typing.py2109 # Check if the members appears in the class dictionary...
LOWLib/tokenize.py390 # Check if the line matches the encoding.
LOWLib/ctypes/util.py257 # Check if the given file is an elf file: gcc can report
LOWLib/ctypes/util.py430 # Check if the given file is an elf file: gcc can report
LOWLib/ctypes/__init__.py144 # Check if sizeof(ctypes_type) against struct.calcsize. This
LOWLib/unittest/mock.py455 # Check if spec is an async object or function
LOWLib/test/test_external_inspection.py106 # Check if all expected signals are in buffer
LOWLib/test/test__interpchannels.py1412 # Set this to True to avoid creating interpreters, e.g. when
LOWLib/test/test_gzip.py204 # Open the file for writing, then close it.
LOWLib/test/test_logging.py6308 # Set level to NOTSET and ensure caches are empty
LOWLib/test/test_pdb.py3667 # Check if the custom prefix appeared in the output
LOWLib/test/test_difflib.py260 # Check if the problem described in patch #1413711 exists.
LOWLib/test/test_type_cache.py33 # Check if global version tag has already overflowed.
LOWLib/test/test_typing.py5093 # Check if a dictionary conforms to Dict type
LOWLib/test/test_typing.py5108 # Check if an instance conforms to the generic class
LOWLib/test/test_typing.py5120 # Check if list conforms to a List subclass
LOWLib/test/test_remote_pdb.py980 # Add commands to the queue
LOWLib/test/test_remote_pdb.py1005 # Check if prompt was sent to client
LOWLib/test/test_remote_pdb.py1161 # Check if we got the expected output
LOWLib/test/test_http_cookies.py104 # Check if the cookie is loaded correctly
LOWLib/test/test_compile.py1395 # Check if bytecode containing jumps that simply point to the next line
LOWLib/test/test_dtrace.py243 # Check if bpftrace is available and can attach to USDT probes
LOWLib/test/test_annotationlib.py2351 # Check if the passed in mutable arguments equal the originals
LOWLib/test/test_codecs.py2931 # Check if the BOM is written only once
LOWLib/test/test_pyrepl/test_terminfo.py595 # Check if standard curses can setup this terminal in subprocess
48 more matches not shown…
Hallucination Indicators10 hits · 130 pts
SeverityFileLineSnippet
CRITICALLib/test/test_urllib2net.py362 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
CRITICALLib/test/test_urllib2net.py373 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
CRITICALLib/test/test_urllib2net.py385 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
CRITICALLib/test/test_urllib2net.py392 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
CRITICALLib/test/test_lazy_import/__init__.py514 g = test.test_lazy_import.data.pkg.c.get_globals()
CRITICALLib/test/test_asyncio/test_proactor_events.py816 self.proactor.recv.return_value.add_done_callback.assert_called_with(
CRITICALLib/test/test_asyncio/test_proactor_events.py825 self.proactor.recv.return_value.add_done_callback.assert_called_with(
CRITICALLib/xml/dom/expatbuilder.py316 self.document.doctype.entities._seq.append(node)
CRITICALLib/xml/dom/expatbuilder.py322 self.document.doctype.notations._seq.append(node)
CRITICALLib/idlelib/idle_test/test_textview.py211 self.assertEqual(self.view.viewframe.textframe.text.get('1.0', '1.end'),
Dead Code40 hits · 78 pts
SeverityFileLineSnippet
MEDIUMTools/c-analyzer/c_parser/parser/_func_body.py49
MEDIUMTools/c-analyzer/c_parser/parser/_func_body.py50
MEDIUMTools/c-analyzer/cpython/_analyzer.py121
MEDIUMTools/c-analyzer/cpython/_analyzer.py133
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py119
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py121
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py124
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py125
MEDIUMLib/test/test__interpchannels.py611
MEDIUMLib/test/test__interpchannels.py613
MEDIUMLib/test/test_fractions.py175
MEDIUMLib/test/test_threading.py2488
MEDIUMLib/test/test_itertools.py2440
MEDIUMLib/test/test_array.py1136
MEDIUMLib/test/test_generators.py577
MEDIUMLib/test/test_generators.py588
MEDIUMLib/test/test_exceptions.py1830
MEDIUMLib/test/test_compile.py905
MEDIUMLib/test/test_set.py21
MEDIUMLib/test/test_set.py1109
MEDIUMLib/test/test_deque.py16
MEDIUMLib/test/test_sys_settrace.py2762
MEDIUMLib/test/test_yield_from.py203
MEDIUMLib/test/test_yield_from.py204
MEDIUMLib/test/test_yield_from.py205
MEDIUMLib/test/test_asyncgen.py417
MEDIUMLib/test/test_asyncgen.py450
MEDIUMLib/test/test_asyncgen.py587
MEDIUMLib/test/test_asyncgen.py868
MEDIUMLib/test/test_asyncgen.py996
MEDIUMLib/test/test_asyncgen.py2046
MEDIUMLib/test/test_asyncgen.py2067
MEDIUMLib/test/test_asyncgen.py2091
MEDIUMLib/test/test_asyncgen.py837
MEDIUMLib/test/test_asyncgen.py911
MEDIUMLib/test/test_builtin.py1429
MEDIUMLib/test/test_dict.py291
MEDIUMLib/test/dtracedata/call_stack.py15
MEDIUMLib/test/test_unittest/test_async_case.py362
MEDIUMLib/test/test_capi/test_misc.py1624
Overly Generic Function Names105 hits · 49 pts
SeverityFileLineSnippet
LOWLib/socketserver.py273 def handle_request(self):
LOWLib/contextlib.py366 def helper(*args, **kwds):
LOWLib/contextlib.py399 def helper(*args, **kwds):
LOWLib/test/test_unparse.py927 def test_function(self):
LOWLib/test/test_gc.py228 def test_function(self):
LOWLib/test/test_logging.py2169 def handle_request(self, request):
LOWLib/test/test_with.py44 def helper(*args, **kwds):
LOWLib/test/test_marshal.py19 def helper(self, sample, *extra):
LOWLib/test/test_pdb.py721def do_something():
LOWLib/test/test_pdb.py53 >>> def test_function(foo, bar):
LOWLib/test/test_pdb.py98 >>> def test_function():
LOWLib/test/test_pdb.py234 >>> def test_function():
LOWLib/test/test_pdb.py365 >>> def test_function():
LOWLib/test/test_pdb.py416 >>> def test_function():
LOWLib/test/test_pdb.py441 >>> def test_function():
LOWLib/test/test_pdb.py487 >>> def test_function():
LOWLib/test/test_pdb.py520 >>> def test_function():
LOWLib/test/test_pdb.py642 >>> def test_function():
LOWLib/test/test_pdb.py668 >>> def test_function():
LOWLib/test/test_pdb.py689 >>> def test_function():
LOWLib/test/test_pdb.py743 >>> def test_function():
LOWLib/test/test_pdb.py770 1 def test_function():
LOWLib/test/test_pdb.py816 ... def do_something():
LOWLib/test/test_pdb.py834 >>> def test_function():
LOWLib/test/test_pdb.py867 >>> def test_function():
LOWLib/test/test_pdb.py937 >>> def test_function():
LOWLib/test/test_pdb.py1009 >>> def test_function():
LOWLib/test/test_pdb.py1094 >>> def test_function():
LOWLib/test/test_pdb.py1115 >>> def test_function():
LOWLib/test/test_pdb.py1133 >>> def test_function():
LOWLib/test/test_pdb.py1190 >>> def test_function():
LOWLib/test/test_pdb.py1286 >>> def test_function():
LOWLib/test/test_pdb.py1368 >>> def test_function():
LOWLib/test/test_pdb.py1422 >>> def test_function():
LOWLib/test/test_pdb.py1495 >>> def test_function():
LOWLib/test/test_pdb.py1528 >>> def test_function():
LOWLib/test/test_pdb.py1560 >>> def test_function():
LOWLib/test/test_pdb.py1635 >>> def test_function():
LOWLib/test/test_pdb.py1687 >>> def test_function():
LOWLib/test/test_pdb.py1724 1 def test_function():
LOWLib/test/test_pdb.py1754 >>> def test_function():
LOWLib/test/test_pdb.py1824 >>> def test_function():
LOWLib/test/test_pdb.py1912 >>> def test_function():
LOWLib/test/test_pdb.py2005 >>> def test_function():
LOWLib/test/test_pdb.py2069 >>> def test_function():
LOWLib/test/test_pdb.py2134 >>> def test_function():
LOWLib/test/test_pdb.py2166 >>> def test_function():
LOWLib/test/test_pdb.py2228 >>> def test_function():
LOWLib/test/test_pdb.py2281 >>> def test_function():
LOWLib/test/test_pdb.py2336 >>> def test_function():
LOWLib/test/test_pdb.py2397 >>> def test_function():
LOWLib/test/test_pdb.py2450 >>> def test_function():
LOWLib/test/test_pdb.py2515 >>> def test_function():
LOWLib/test/test_pdb.py2553 >>> def test_function():
LOWLib/test/test_pdb.py2612 >>> def test_function():
LOWLib/test/test_pdb.py2648 >>> def test_function():
LOWLib/test/test_pdb.py2693 >>> def test_function():
LOWLib/test/test_pdb.py2739 >>> def test_function():
LOWLib/test/test_pdb.py2769 >>> def test_function():
LOWLib/test/test_pdb.py2805 >>> def test_function():
45 more matches not shown…
Verbosity Indicators25 hits · 47 pts
SeverityFileLineSnippet
LOWLib/encodings/idna.py68 # Step 1: try ASCII
LOWLib/encodings/idna.py82 # Step 2: nameprep
LOWLib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is false
LOWLib/encodings/idna.py86 # Step 4: try ASCII
LOWLib/encodings/idna.py100 # Step 5: Check ACE prefix
LOWLib/encodings/idna.py105 # Step 6: Encode with PUNYCODE
LOWLib/encodings/idna.py108 # Step 7: Prepend ACE prefix
LOWLib/encodings/idna.py111 # Step 8: Check size
LOWLib/encodings/idna.py130 # Step 1: Check for ASCII
LOWLib/encodings/idna.py141 # Step 2: Perform nameprep
LOWLib/encodings/idna.py149 # Step 3: Check for ACE prefix
LOWLib/encodings/idna.py154 # Step 4: Remove ACE prefix
LOWLib/encodings/idna.py157 # Step 5: Decode using PUNYCODE
LOWLib/encodings/idna.py164 # Step 6: Apply ToASCII
LOWLib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3
LOWLib/encodings/idna.py173 # Step 8: return the result of step 5
LOWLib/test/test_curses.py947 # range may be restricted, so we need to check if the limit is still
LOWLib/email/header.py399 # Step 1: Normalize the chunks so that all runs of identical charsets
LOWModules/expat/refresh.sh22# Step 1: download and copy files
LOWModules/expat/refresh.sh26# Step 2: Pull files from the libexpat distribution
LOWModules/expat/refresh.sh57# Step 3: Add the namespacing include to expat_external.h
LOWModules/expat/refresh.sh67# Step 4: Skip the Windows rand_s entropy path in xmlparse.c when
LOWModules/_hacl/refresh.sh39# Step 1: copy files
LOWModules/_hacl/refresh.sh116# Step 2: some in-place modifications to keep things simple and minimal
LOWModules/_hacl/refresh.sh151# Step 3: trim whitespace (for the linter)
Synthetic Comment Markers5 hits · 38 pts
SeverityFileLineSnippet
HIGHInclude/internal/pycore_global_strings.h911/* End auto-generated code */
HIGHInclude/internal/pycore_unicodeobject_generated.h3476/* End auto-generated code */
HIGHInclude/internal/pycore_runtime_init_generated.h2439/* End auto-generated code */
HIGHInclude/internal/pycore_global_objects_fini_generated.h2442/* End auto-generated code */
HIGHLib/subprocess.py334 # which is calling `CloseHandle` as requested in [1]), so there is nothing
Slop Phrases17 hits · 31 pts
SeverityFileLineSnippet
LOWTools/clinic/libclinic/block_parser.py179 # make sure to recognize stop line even if it
LOWPython/jit.c170 // Do NOT ever leave the memory writable! Also, don't forget to flush the
LOWPython/jit.c642// Compiles executor in-place. Don't forget to call _PyJIT_Free later!
MEDIUMPython/hamt.c413 Also it's worth noting that it would be possible to adapt the tree
LOWObjects/exceptions.c37/* NOTE: If the exception class hierarchy changes, don't forget to update
MEDIUMLib/heapq.py267# you can use it.
LOWLib/quopri.py91 # Don't forget to include the soft line break `=' sign in the
MEDIUMLib/ntpath.py402# XXX With COMMAND.COM you can use any characters in a variable name,
LOWLib/test/test_gc.py1729 # make sure to always test gc.enable()
LOWLib/test/_test_multiprocessing.py1520 q.join_thread() # make sure to join the feeder thread
MEDIUMLib/test/test_logging.py425# level values which do not fit into these limitations, you can use a
LOWLib/test/test_bigmem.py46# - Don't forget to test for large indices, offsets and results and such,
MEDIUMLib/test/test_unittest/testmock/testmagicmethods.py533 # Check if you can change behaviour of magic methods in MagicMock init
LOWLib/_pyrepl/fancycompleter.py177 # sort the words now to make sure to return completions in
LOWModules/arraymodule.c767 * Don't forget to update typecode_to_mformat_code() if you add a new
MEDIUMModules/xxsubtype.c106 PyDoc_STR("an int variable for demonstration purposes")},
MEDIUMModules/xxsubtype.c204 PyDoc_STR("an int variable for demonstration purposes")},
Fake / Example Data36 hits · 25 pts
SeverityFileLineSnippet
LOWLib/test/test_curses.py397 self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,')
LOWLib/test/test_curses.py438 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')
LOWLib/test/test_curses.py441 self.assertEqual(win.instr(3, 0), b'dolor sit amet,')
LOWLib/test/test_curses.py447 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')
LOWLib/test/test_curses.py457 self.assertEqual(win.instr(0, 0), b'dolor sit amet,')
LOWLib/test/test_curses.py479 win.addstr(2, 0, 'Lorem ipsum')
LOWLib/test/test_curses.py480 win.addstr(3, 0, 'dolor sit amet')
LOWLib/test/test_curses.py509 win.addstr(0, 0, 'Lorem ipsum')
LOWLib/test/test_curses.py597 win.addstr(2, 1, 'Lorem ipsum')
LOWLib/test/test_curses.py605 self.assertEqual(win.instr(2, 0), b' Lorem ipsum')
LOWLib/test/test_curses.py1349 'Lorem ipsum',
LOWLib/test/test_curses.py1350 'dolor sit amet,',
LOWLib/test/test_smtplib.py518 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py555 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py584 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py644 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py681 m['From'] = 'foo@bar.com'
LOWLib/test/test_tkinter/test_text.py152 'Lorem ipsum dolor sit amet,\n'
LOWLib/test/test_tkinter/test_text.py152 'Lorem ipsum dolor sit amet,\n'
LOWLib/test/test_dataclasses/__init__.py2313 self.assertEqual(C.__doc__, "Lorem ipsum")
LOWLib/test/test_dataclasses/__init__.py2310 """Lorem ipsum"""
LOWLib/test/test_email/test_generator.py603 msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo")
LOWLib/test/test_email/test_email.py3463 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'
LOWLib/test/test_email/test_email.py3463 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'
LOWLib/test/test_email/test_email.py3465 [('Jane Doe', 'jane@example.net'),
LOWLib/test/test_email/test_email.py3466 ('John Doe', 'john@example.net')])
LOWLib/test/test_email/test_email.py3468 [('Jane Doe', 'jane@example.net'),
LOWLib/test/test_email/test_email.py3469 ('John Doe', 'john@example.net')])
LOWLib/test/test_email/test_email.py3525 eq(addrs[0][1], 'foo@bar.com')
LOWLib/test/test_email/test_email.py3725 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',
LOWLib/test/test_email/test_email.py3725 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',
LOWLib/test/test_email/test_email.py4232 ('From: foo@bar.com', ('From', 'foo@bar.com')),
LOWLib/test/test_email/test_email.py4265 ['foo@bar.com',
LOWLib/test/test_email/test_email.py4276 [('From', 'foo@bar.com'),
LOWLib/test/test_email/test_email.py4288 ['foo@bar.com',
LOWLib/test/test_email/test_message.py581 ('To', 'foo@bar.com'),
Example Usage Blocks7 hits · 11 pts
SeverityFileLineSnippet
LOWTools/msi/purge.py3# Usage:
LOWInclude/critical_section.h29// Example usage:
LOWInclude/pyport.h630// Usage example:
LOWInclude/internal/pycore_parking_lot.h53// Example usage:
LOWInclude/internal/pycore_parking_lot.h82// Example usage:
LOWLib/test/test_unittest/testmock/testmock.py600 # Usage example
LOWLib/zipfile/__init__.py717# Usage: