From: Adam T. <aa-...@us...> - 2022-01-12 23:43:52
|
> leading underscores OK. My intention was to not expand the module's public API any further, on the underscored-names-are-private convention. However I do remember the discussion about more clearly defining Docutils' public API -- perhaps that work should happen first. (My suggestion would be a single document listing the modules/classes that form the public API, and then reinforcing that in the code with `__all__` and use of underscores, etc.) > Before the move to dict based arguments_spec Fair enough -- I have proposed the simplest possible change, which is just replicating `kwargs` of `ArgumentParser.add_argument`. I'd probably suggest sticking with this (similarly to how settings_spec delegates much to `OptionParser.add_option`), although of course other designs could be used. > this broke applications :( > Not yet, I am afraid Fair enough! A > once the API sufficiently defined a deprecation policy is agreed OK, seems this is a blocker to a few of my proposed changes. I can open a ticket to start a discussion if there's not one already? I think the API, versioning, and deprecation conversations do probably link to each other quite a bit. --- ** [bugs:#441] Move from "optparse" to "argparse".** **Status:** open **Created:** Thu Jan 06, 2022 03:02 PM UTC by Günter Milde **Last Updated:** Wed Jan 12, 2022 04:16 PM UTC **Owner:** Günter Milde 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 doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |