[docutils:feature-requests] #110 Move from "optparse" to "argparse".

Günter Milde via Docutils-develop <[email protected]> Fri, 25 Apr 2025 15:24:01 -0000
Newsgroups gmane.text.docutils.devel
Message-ID </p/docutils/feature-requests/110/8e50e79222f034f22f691281e628822ccdaa8c32.feature-requests@docutils.p.sourceforge.net>
In Python 3.13.3, the [optparse](https://docs.python.org/3/library/optparse.html) module is no longer deprecated but rather described as a low-level alternative to *argparse* for apps already using *optparse*  if the migrating costs are too high.

In Docutils migrating will become easier after we drop support for old-format configuration files in Docutils 2.0. I suggest postponing the migration and announce it for "Docutils 2.0 or later".


Attachments:

- [0001-Announce-switch-to-argparse-for-Docutils-2.0-or-late.patch](https://sourceforge.net/p/docutils/feature-requests/_discuss/thread/c76f9a2618/7847/attachment/0001-Announce-switch-to-argparse-for-Docutils-2.0-or-late.patch) (6.4 kB; text/x-patch)


---

**[feature-requests:#110] Move from "optparse" to "argparse".**

**Status:** open
**Group:** Default
**Created:** Thu Jan 06, 2022 03:02 PM UTC by Günter Milde
**Last Updated:** Thu Jan 16, 2025 09:26 AM UTC
**Owner:** nobody


The optparse documentation says:
> Deprecated since version 3.2: The optparse module is deprecated and will not be developed further; development will continue with the argparse module.

We are currently suppressing related deprecation warnings in the test suite.
After raising the Python dependency to >=3.7, now may be the right time to make the move.


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.