Skip to content

Commit 9708536

Browse files
Reframe docs to focus on exception
1 parent d835745 commit 9708536

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Doc/library/argparse.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

20022002
Parser defaults

Doc/whatsnew/3.14.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Calling :meth:`argparse.ArgumentParser.add_argument_group` on an argument group,
22
and 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.
66
This functionality has been deprecated since Python 3.11.

0 commit comments

Comments
 (0)