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 — Investigate `argparse` formatter handling of `color` · Issue #139862 · python/cpython

Investigate argparse formatter handling of color #139862

New issue
Copy link
New issue
Copy link
Closed
Closed
Investigate argparse formatter handling of color#139862
Copy link
Assignees
savannahostrowski
Labels
3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@savannahostrowski
savannahostrowski
opened on Oct 9, 2025
Issue body actions

Hmm, this seems like a bug. HelpFormatter accepts color, but it is then seemingly overridden in _get_formatter. This should probably be respected, or we should remove it to avoid confusion.

Originally posted by @savannahostrowski in #139818 (comment)

Linked PRs

  • GH-139862: Remove color from HelpFormatter #142274
  • GH-139862: Fix direct instantiation of HelpFormatter #142384
Reacted by msmojtabafar

Activity

  1. savannahostrowski
    self-assigned this
    on Oct 9, 2025
  2. savannahostrowski
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Oct 9, 2025
  3. savannahostrowski
    added this to Argparse issueson Oct 9, 2025
  4. picnixz
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    on Oct 10, 2025
  5. savannahostrowski
    added a commit that references this issue on Dec 5, 2025

    GH-139862: Remove `color` from HelpFormatter (#142274)

    4b14529
  6. savannahostrowski
    closed this as completedon Dec 5, 2025
  7. github-project-automation
    moved this to Doc issues in Argparse issueson Dec 5, 2025
  8. StanFromIreland
    added a commit that references this issue on Dec 6, 2025

    pythonGH-139862: Remove `color` from HelpFormatter (python#142274)

    f42990f
  9. savannahostrowski
    added a commit that references this issue on Dec 7, 2025

    GH-139862: Fix direct instantiation of `HelpFormatter` (#142384)

    dc9f238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @savannahostrowski
    savannahostrowski

Labels

3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

  • Argparse issues
    Status
    Doc issues
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

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.