File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Misc/NEWS.d/next/Core_and_Builtins Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1927,9 +1927,9 @@ Argument groups
19271927 in the usual "positional arguments" and "optional arguments" sections.
19281928
19291929 .. deprecated-removed :: 3.11 3.14
1930- Calling :meth: `add_argument_group ` on an argument group has been removed.
1931- This feature was never supported and did not always work correctly.
1932- The function existed on the API by accident through inheritance.
1930+ Calling :meth: `add_argument_group ` on an argument group now raises an
1931+ exception. This nesting was never supported, often failed to work
1932+ correctly, and was unintentionally exposed through inheritance.
19331933
19341934 .. deprecated :: 3.14
19351935 Passing prefix_chars _ to :meth: `add_argument_group `
@@ -1994,9 +1994,9 @@ Mutual exclusion
19941994
19951995 .. deprecated-removed :: 3.11 3.14
19961996 Calling :meth: `add_argument_group ` or :meth: `add_mutually_exclusive_group `
1997- on a mutually exclusive group has been removed. These features were never
1998- supported and did not always work correctly. The functions existed on the
1999- API by accident through inheritance.
1997+ on a mutually exclusive group now raises an exception. This nesting was
1998+ never supported, often failed to work correctly, and was unintentionally
1999+ exposed through inheritance.
20002000
20012001
20022002Parser defaults
Original file line number Diff line number Diff line change @@ -644,8 +644,8 @@ argparse
644644* Calling :meth: `~argparse.ArgumentParser.add_argument_group ` on an argument
645645 group, and calling :meth: `~argparse.ArgumentParser.add_argument_group ` or
646646 :meth: `~argparse.ArgumentParser.add_mutually_exclusive_group ` on a mutually
647- exclusive group have been removed . This nesting was never supported, did
648- not always work correctly, and existed in the API by accident through
647+ exclusive group now raise exceptions . This nesting was never supported,
648+ often failed to work correctly, and was unintentionally exposed through
649649 inheritance. This functionality has been deprecated since Python 3.11.
650650 (Contributed by Savannah Ostrowski in :gh: `127186 `.)
651651
Original file line number Diff line number Diff line change 11Calling :meth: `argparse.ArgumentParser.add_argument_group ` on an argument group,
22and calling :meth: `argparse.ArgumentParser.add_argument_group ` or
33:meth: `argparse.ArgumentParser.add_mutually_exclusive_group ` on a mutually
4- exclusive group have been removed . This nesting was never supported, did not
5- always work correctly, and existed in the API by accident through inheritance.
4+ exclusive group now raise exceptions . This nesting was never supported, often
5+ failed to work correctly, and was unintentionally exposed through inheritance.
66This functionality has been deprecated since Python 3.11.
You can’t perform that action at this time.
0 commit comments