| CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Sun, 28 Dec 2025 21:57:20 GMT
content-type: text/html; charset=utf-8
expires: Sun, 28 Dec 2025 21:57:19 GMT
cache-control: no-cache
x-frame-options: sameorigin
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
content-encoding: gzip
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
Issue 37103: Undo deprecation of optparse - Python tracker
- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
Issue37103
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2019-05-30 19:50 by andersk, last changed 2022-04-11 14:59 by admin.
| Messages (2) | |||
|---|---|---|---|
| msg343997 - (view) | Author: Anders Kaseorg (andersk) * | Date: 2019-05-30 19:50 | |
The optparse library is currently marked in the documentation as deprecated in favor of argparse. However, argparse uses a nonstandard reinterpretation of Unix command line grammars that makes certain arguments impossible to express, and causes scripts to break when ported from optparse to argparse. See the bug report I filed nine years ago: https://bugs.python.org/issue9334 argparse does not accept options taking arguments beginning with dash (regression from optparse) The conclusion of the core developers (e.g. msg309691) seems to have been that although it’s a valid bug, it can’t or won’t be fixed with the current argparse architecture. I was asked by another core developer to file a bug report for the de-deprecation of optparse (https://discuss.python.org/t/pep-594-removing-dead-batteries-from-the-standard-library/1704/20), so here it is. |
|||
| msg344023 - (view) | Author: Karthikeyan Singaravelan (xtreak) * ![]() |
Date: 2019-05-31 04:55 | |
See also issue25521 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:16 | admin | set | github: 81284 |
| 2019-05-31 04:55:30 | xtreak | set | nosy:
+ xtreak messages: + msg344023 |
| 2019-05-30 20:43:23 | eric.smith | set | nosy:
+ eric.smith |
| 2019-05-30 19:50:25 | andersk | create | |

