@@ -2340,12 +2340,6 @@ Changes in the Python API |
|
|
2340 |
2340 |
instead of a :class:`bytes` instance. |
2341 |
2341 |
(Contributed by Victor Stinner in :issue:`21071`.) |
2342 |
2342 |
|
2343 |
|
-* :mod:`argparse` subparsers are now required by default. This matches the |
2344 |
|
- behaviour in Python 2. To add an optional subparser, pass |
2345 |
|
- ``required=False`` to |
2346 |
|
-:meth:`ArgumentParser.add_subparsers() <argparse.ArgumentParser.add_subparsers>`. |
2347 |
|
- (Contributed by Anthony Sottile in :issue:`26510`.) |
2348 |
|
- |
2349 |
2343 |
* :meth:`ast.literal_eval()` is now stricter. Addition and subtraction of |
2350 |
2344 |
arbitrary numbers are no longer allowed. |
2351 |
2345 |
(Contributed by Serhiy Storchaka in :issue:`31778`.) |