Issue 18979: Use argparse in the uu module (original) (raw)

Issue18979

Created on 2013-09-08 17:23 by serhiy.storchaka, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
uu_argparse.patch serhiy.storchaka,2013-09-08 17:23 review
Messages (4)
msg197289 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-09-08 17:23
Here is a patch which replaces optparse to argparse in the uu module.
msg225047 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-08-07 23:36
@Paul what is your opinion of this patch?
msg225052 - (view) Author: paul j3 (paul.j3) * (Python triager) Date: 2014-08-08 02:28
Reading through, but not testing, it looks like a faithful replacement. The usage like will be a bit different. Given optparse: usage='usage: %prog [-d] [-t] [input [output]] automatic argparse: usage='usage: %prog [-d] [-t] [input] [output] There is, however, a bugs issue about converting the '[..] [..]' into [..[..]]. Other than simplifying the handling of these positional arguments, this replacement doesn't add much. I haven't paid much attention to issues that replace other uses of optparse. Since that is no longer deprecated, I don't think there's a rush to replace them.
msg415053 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-03-13 17:27
uu is deprecated as per PEP 594, so there won't be further enhancements to it.
History
Date User Action Args
2022-04-11 14:57:50 admin set github: 63179
2022-03-13 17:27:03 iritkatriel set status: open -> closednosy: + iritkatrielmessages: + resolution: wont fixstage: patch review -> resolved
2019-04-26 20:28:07 BreamoreBoy set nosy: - BreamoreBoy
2014-08-08 02:28:58 paul.j3 set messages: +
2014-08-07 23:36:01 BreamoreBoy set nosy: + BreamoreBoy, paul.j3messages: + versions: + Python 3.5, - Python 3.4
2013-09-08 17:23:44 serhiy.storchaka create