gh-125542: Deprecate `prefix_chars` in `ArgumentParser.add_argument_group` by savannahostrowski · Pull Request #125563 · python/cpython

@savannahostrowski

@savannahostrowski

@savannahostrowski

@savannahostrowski savannahostrowski changed the title Deprecate prefix_chars in ArgumentParser.add_argument_group gh-125542: Deprecate prefix_chars in ArgumentParser.add_argument_group

Oct 16, 2024

@savannahostrowski

@serhiy-storchaka I wasn't sure if this should be considered more of a soft deprecation (targeting slated removal in 3.16 or similar) since I'm not really changing logic here to ignore this parameter/throw an error. Interested to hear your thoughts!

@savannahostrowski

@savannahostrowski

savannahostrowski

@savannahostrowski

serhiy-storchaka

@savannahostrowski

@savannahostrowski

@savannahostrowski

It looks like using :ref: for parameters doesn't work cross-file (e.g., in news entries). After looking at other examples, it seems the right thing to do here is to use `` instead.

serhiy-storchaka

@serhiy-storchaka

serhiy-storchaka

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

ebonnal pushed a commit to ebonnal/cpython that referenced this pull request

Jan 12, 2025

donbarbos added a commit to donbarbos/typeshed that referenced this pull request

Jul 18, 2025