bpo-29442: Replace optparse with argparse in setup.py by yan12125 · Pull Request #139 · python/cpython
yan12125 pushed a commit to yan12125/python3-android that referenced this pull request
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request
* master: (2633 commits) bpo-34087: Fix buffer overflow in int(s) and similar functions (pythonGH-8274) bpo-34108: Fix double carriage return in 2to3 on Windows (python#8271) bpo-4260: Document that ctypes.xFUNCTYPE are decorators (pythonGH-7924) bpo-33723: Fix test_time.test_thread_time() (pythonGH-8267) bpo-33967: Remove use of deprecated assertRaisesRegexp() (pythonGH-8261) bpo-34080: Fix a memory leak in the compiler. (pythonGH-8222) Enable GUI testing on Travis Linux builds via Xvfb (pythonGH-7887) bpo-23927: Make getargs.c skipitem() skipping 'w*'. (pythonGH-8192) bpo-33648: Remove PY_WARN_ON_C_LOCALE (pythonGH-7114) bpo-34092, test_logging: increase SMTPHandlerTest timeout (pythonGH-8245) Simplify __all__ in multiprocessing (pythonGH-6856) bpo-34083: Update dict order in Functional HOWTO (pythonGH-8230) Doc: Point to Simple statements section instead of PEP (pythonGH-8238) bpo-29442: Replace optparse with argparse in setup.py (pythonGH-139) bpo-33597: Add What's New for PyGC_Head (pythonGH-8236) Dataclasses: Fix example on 30.6.8, add method should receive a list rather than an integer. (pythonGH-8038) Fix documentation for input and output tutorial (pythonGH-8231) bpo-34009: Expand on platform support changes (pythonGH-8022) Factor-out two substantially identical code blocks. (pythonGH-8219) bpo-34031: fix incorrect usage of self.fail in two tests (pythonGH-8091) ...
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request
* master: (1159 commits) bpo-34087: Fix buffer overflow in int(s) and similar functions (pythonGH-8274) bpo-34108: Fix double carriage return in 2to3 on Windows (python#8271) bpo-4260: Document that ctypes.xFUNCTYPE are decorators (pythonGH-7924) bpo-33723: Fix test_time.test_thread_time() (pythonGH-8267) bpo-33967: Remove use of deprecated assertRaisesRegexp() (pythonGH-8261) bpo-34080: Fix a memory leak in the compiler. (pythonGH-8222) Enable GUI testing on Travis Linux builds via Xvfb (pythonGH-7887) bpo-23927: Make getargs.c skipitem() skipping 'w*'. (pythonGH-8192) bpo-33648: Remove PY_WARN_ON_C_LOCALE (pythonGH-7114) bpo-34092, test_logging: increase SMTPHandlerTest timeout (pythonGH-8245) Simplify __all__ in multiprocessing (pythonGH-6856) bpo-34083: Update dict order in Functional HOWTO (pythonGH-8230) Doc: Point to Simple statements section instead of PEP (pythonGH-8238) bpo-29442: Replace optparse with argparse in setup.py (pythonGH-139) bpo-33597: Add What's New for PyGC_Head (pythonGH-8236) Dataclasses: Fix example on 30.6.8, add method should receive a list rather than an integer. (pythonGH-8038) Fix documentation for input and output tutorial (pythonGH-8231) bpo-34009: Expand on platform support changes (pythonGH-8022) Factor-out two substantially identical code blocks. (pythonGH-8219) bpo-34031: fix incorrect usage of self.fail in two tests (pythonGH-8091) ...
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request
…ssue-33014 * 'master' of github.com:CuriousLearner/cpython: (722 commits) bpo-34087: Fix buffer overflow in int(s) and similar functions (pythonGH-8274) bpo-34108: Fix double carriage return in 2to3 on Windows (python#8271) bpo-4260: Document that ctypes.xFUNCTYPE are decorators (pythonGH-7924) bpo-33723: Fix test_time.test_thread_time() (pythonGH-8267) bpo-33967: Remove use of deprecated assertRaisesRegexp() (pythonGH-8261) bpo-34080: Fix a memory leak in the compiler. (pythonGH-8222) Enable GUI testing on Travis Linux builds via Xvfb (pythonGH-7887) bpo-23927: Make getargs.c skipitem() skipping 'w*'. (pythonGH-8192) bpo-33648: Remove PY_WARN_ON_C_LOCALE (pythonGH-7114) bpo-34092, test_logging: increase SMTPHandlerTest timeout (pythonGH-8245) Simplify __all__ in multiprocessing (pythonGH-6856) bpo-34083: Update dict order in Functional HOWTO (pythonGH-8230) Doc: Point to Simple statements section instead of PEP (pythonGH-8238) bpo-29442: Replace optparse with argparse in setup.py (pythonGH-139) bpo-33597: Add What's New for PyGC_Head (pythonGH-8236) Dataclasses: Fix example on 30.6.8, add method should receive a list rather than an integer. (pythonGH-8038) Fix documentation for input and output tutorial (pythonGH-8231) bpo-34009: Expand on platform support changes (pythonGH-8022) Factor-out two substantially identical code blocks. (pythonGH-8219) bpo-34031: fix incorrect usage of self.fail in two tests (pythonGH-8091) ...
akruis added a commit to akruis/cpython that referenced this pull request
The outcome of this merge does not compile. Stackless issue python#139 will fix this.
akruis added a commit to akruis/cpython that referenced this pull request
…tines Since upstream commit fc2f407 (bpo-32591) the memory layout of generators and coroutines differs. Therefore it is no longer feasible to share the pickling code. This refactor the common parts of the reduce/setstate implementation into support methods and support the new coroutine attribute cr_origin.
akruis added a commit to akruis/cpython that referenced this pull request
akruis added a commit to akruis/cpython that referenced this pull request
akruis added a commit to akruis/cpython that referenced this pull request
akruis added a commit to akruis/cpython that referenced this pull request
akruis added a commit to akruis/cpython that referenced this pull request
akruis added a commit to akruis/cpython that referenced this pull request
akruis added a commit to akruis/cpython that referenced this pull request
akruis added a commit to akruis/cpython that referenced this pull request
itamaro pushed a commit to itamaro/cpython that referenced this pull request
The internal and external repositories are out of sync. This Pull Request attempts to brings them back in sync by patching the GitHub repository. Please carefully review this patch. You must disable ShipIt for your project in order to merge this pull request. DO NOT IMPORT this pull request. Instead, merge it directly on GitHub using the MERGE BUTTON. Re-enable ShipIt after merging. Co-authored-by: Facebook Community Bot <6422482+facebook-github-bot@users.noreply.github.com>
SonicField added a commit to SonicField/cpython that referenced this pull request
Bundles two W-PROTOCOL-CODIFY P5 expansions per supervisor 20:56:40Z: (1) PHASE A.5 — Named entry-point factories per pythia python#139 python#1 + supervisor 20:51:44Z. Closes the unchecked-wrap-entry gap from Phase A (push 56): brace-init from a raw int didn't enforce the int's semantic domain. Mid-flow propagation between wrappers IS type-enforced; entry was the unguarded gap pythia flagged. ADDED to Python/jit/bytecode_c.h: static inline BcByteOffset bc_byte_offset_from_int(int v); static inline BcInstrIndex bc_instr_index_from_int(int v); REFACTORED 3 entry-point sites in build_inline_except_opcode_array_c (builder_emit_c.c) — all 3 sites now use bc_*_from_int factories instead of brace-init: except_body_offset (entry), jit_bc_instr_base_offset (Class C site), jit_bc_instr_get_jump_target (Class B site). (2) VTableByteOffset wrapper per theologian P7 audit 2026-04-25T20:53:51Z + supervisor 20:55:10Z + 20:56:40Z. Pre-conversion gate item for emitLoadMethodStatic seam: vte_state_offset + vte_load_offset are raw intptr_t with no compile-time domain distinction (Class-A-shape swap risk if a future caller passes them in wrong order). ADDED to Python/jit/bytecode_c.h: typedef struct { intptr_t v; } VTableByteOffset; static inline VTableByteOffset vtable_byte_offset_from_intptr(intptr_t v); intptr_t (not int) for vtable size headroom — bytecode size fits int but vtable could exceed. SAME-domain ordering protection (distinct VTableStateOffset / VTableLoadOffset typedefs) is OUT-OF-SCOPE per theologian spec — defer until ordering bug observed. (3) docs/w-protocol-codify-spec.md committed to repo (was untracked draft per theologian 19:49Z; W-PROTOCOL-CODIFY needs to live in the codebase for future agents to reference). Spec P5 inventory section updated to show current wrappers (BcByteOffset + BcInstrIndex + VTableByteOffset) + Phase A.5 named factories. Behavior: ZERO change. Phase A.5 factories produce identical struct values as brace-init; VTableByteOffset has no consumers yet (gates emitLoadMethodStatic conversion when that workstream begins). Verification pending: testkeeper rebuild + 30x all 8 sentinels (4 W-2B + 4 W-2A) — must remain 240/240 PASS (zero behavior change expected). Per supervisor 20:56:40Z roadmap: this push 58 → emitAnyCall conversion attempt → push 59 → 24-bench full ABBA → emitLoadMethodStatic conversion (uses VTableByteOffset wrapper) → push 60.