GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-29442: Replace optparse with argparse in setup.py by yan12125 · Pull Request #139 · python/cpython

Conversation

@yan12125

@yan12125 yan12125 commented Feb 16, 2017 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

https://bugs.python.org/issue29442

PS: This patch has conflicts with #1372

Update: depends on #1269

https://bugs.python.org/issue29442

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Feb 16, 2017
@yan12125

yan12125 commented Feb 16, 2017

Copy link
Copy Markdown
Author

See the traceback in http://bugs.python.org/issue29442#msg287702 for why the change in gettext.py is necessary

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Feb 18, 2017
Yen Chi Hsuan
bpo-29442: Replace optparse with argparse in setup.py
aeda21d
auvipy
auvipy approved these changes Dec 30, 2017
View reviewed changes
@bedevere-bot bedevere-bot added the awaiting core review label Dec 30, 2017
@methane methane closed this Jul 9, 2018
@methane methane reopened this Jul 9, 2018
@methane
methane merged commit 09b2bec into python:master Jul 11, 2018
@bedevere-bot bedevere-bot removed the awaiting core review label Jul 11, 2018
@yan12125
yan12125 deleted the setup-py-argparse branch July 11, 2018 14:29
yan12125 pushed a commit to yan12125/python3-android that referenced this pull request Jul 11, 2018
Chih-Hsuan Yen
python: drop a landed patch
b9c4298
python/cpython#139 is finally merged!
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request Jul 14, 2018
@CuriousLearner
Merge branch 'master' into bitwise_docs
11c1706
* 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 Jul 15, 2018
@CuriousLearner
Merge branch 'master' into fix-issue8525
fdc3a3d
* 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 Jul 21, 2018
@CuriousLearner
Merge branch 'master' of github.com:CuriousLearner/cpython into fix-i…
7b039a0
…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 Nov 3, 2018
@akruis
Merge commit 'fc2f407829d9' into master-slp
08a8a01
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 Nov 3, 2018
@akruis
Stackless issue python#139: separate pickling of generators and corou…
94d5fad
…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 Nov 3, 2018
@akruis
Stackless issue python#139: adapt compute_cr_origin() to Stackless
b3a7011
The new function compute_cr_origin(int origin_depth) inspects stack
frames. Modify it to ignore C-frames.
This fixes a segfault in test.test_asyncio.test_events.EPollEventLoopTests.test_sock_client_ops
akruis added a commit to akruis/cpython that referenced this pull request Nov 10, 2018
@akruis
Stackless issue python#139: update a coroutine test case
0ee1366
Add the new attribute "cr_origin" to the copy-test.
akruis added a commit to akruis/cpython that referenced this pull request Nov 10, 2018
@akruis
Stackless issue python#139: refactor PyStacklessState and PyStackless…
413fabd
…InterpreterState

Resize flags and reorder them to avoid padding. This is a preparation
for adding another flag field for pickle related flags.
akruis added a commit to akruis/cpython that referenced this pull request Nov 10, 2018
@akruis
Stackless issue python#139: add pickle-flags to PyStacklessState
99ac643
Add the flags and methods stackless.pickle_flags() and
stackless.pickle_flags_default() to get or set them. Currently only one
flag is defined in prickelpit.h. It will be used by the next commit.
akruis added a commit to akruis/cpython that referenced this pull request Nov 10, 2018
@akruis
Stackless issue python#139: documentation update
d6d23ea
Update the documentation regarding pickling. More to come.
akruis added a commit to akruis/cpython that referenced this pull request Nov 10, 2018
@akruis
Stackless issue python#139: enable pickling of asynchronous generators
80b3f97
Stackless now pickles asynchronous generators. Read the documentation
about Stackless pickling for details.
akruis added a commit to akruis/cpython that referenced this pull request Nov 10, 2018
@akruis
Stackless issue python#139: pickle PyAsyncGenASend or PyAsyncGenAThrow
52ee18f
Stackless now pickles awaitable objects of type PyAsyncGenASend or
PyAsyncGenAThrow (see PEP 525).
akruis added a commit to akruis/cpython that referenced this pull request Jan 5, 2019
@akruis
Stackless issue python#139: ignore global gen_exhausted_asyncgen
cb04beb
Add the global variable gen_exhausted_asyncgen to the list of ignored
globals. It is a constant singleton.
jaraco pushed a commit that referenced this pull request Dec 2, 2022
@pyup-bot @Mariatta
Update pytest from 3.7.3 to 3.7.4 (#139)
4eb32a6
itamaro pushed a commit to itamaro/cpython that referenced this pull request Jun 7, 2024
@facebook-github-bot
Re-sync with internal repository (python#139)
257206a
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 <[email protected]>
SonicField added a commit to SonicField/cpython that referenced this pull request Apr 25, 2026
@SonicField
builder: P5 Phase A.5 named factories + VTableByteOffset wrapper bundle
c5d2edd
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@auvipy auvipy auvipy approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

type-feature A feature request or enhancement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@yan12125 @auvipy @methane @serhiy-storchaka @the-knights-who-say-ni @bedevere-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.