[issue17462] argparse FAQ: how it is different from optparse
New submission from anatoly techtonik: http://stackoverflow.com/questions/3217673/why-use-argparse-rather-than-optp... Too many votes. This should be confirmed by the official documentation. ---------- assignee: docs@python components: Documentation messages: 184468 nosy: docs@python, techtonik priority: normal severity: normal status: open title: argparse FAQ: how it is different from optparse _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Andrew Svetlov added the comment: The patch is welcome ---------- nosy: +asvetlov _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Ezio Melotti added the comment: Is http://docs.python.org/dev/library/argparse.html#upgrading-optparse-code not enough? ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
anatoly techtonik added the comment: @asvetlov: I still don't have the answer which licence - Academic Free License v2.1 or Apache 2.0 should I choose to license my patches. What is the difference? Ezio: It explains what you should replace, but doesn't explain why. ---------- versions: +Python 2.7, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Ezio Melotti added the comment: Indeed a paragraph about it could be added at the beginning. ---------- nosy: +bethard stage: -> needs patch type: -> enhancement versions: +Python 3.2, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Changes by Tshepang Lekhonkhobe <tshepang@gmail.com>: ---------- nosy: +tshepang _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Changes by Éric Araujo <merwok@netwok.org>: ---------- nosy: +eric.araujo versions: -Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Anastasia.Filatova added the comment: Now argparse documentation includes a paragraph about advantages of argparse module over optparse module. ---------- keywords: +patch nosy: +Anastasia.Filatova Added file: http://bugs.python.org/file34486/Issue17462_py27.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Changes by Anastasia.Filatova <anastasia.n.filatova@gmail.com>: Added file: http://bugs.python.org/file34487/Issue17462_py33.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Changes by Anastasia.Filatova <anastasia.n.filatova@gmail.com>: Added file: http://bugs.python.org/file34488/Issue17462_py34.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Éric Araujo added the comment: Thanks for the patch, will apply. ---------- assignee: docs@python -> eric.araujo stage: needs patch -> commit review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Ezio Melotti added the comment: Patch LGTM. ---------- versions: +Python 3.5 -Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Raymond Hettinger added the comment: Thanks for the patch. It reads well and is informative. ---------- nosy: +rhettinger _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Roundup Robot added the comment: New changeset 84313c61e60d by Berker Peksag in branch '3.4': Issue #17462: Add a paragraph about advantages of argparse over optparse. https://hg.python.org/cpython/rev/84313c61e60d New changeset 45e1c0029aff by Berker Peksag in branch 'default': Issue #17462: Add a paragraph about advantages of argparse over optparse. https://hg.python.org/cpython/rev/45e1c0029aff ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Roundup Robot added the comment: New changeset 4eb847e7ddde by Berker Peksag in branch '2.7': Issue #17462: Add a paragraph about advantages of argparse over optparse. https://hg.python.org/cpython/rev/4eb847e7ddde ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
Berker Peksag added the comment: Thanks for the patch, Anastasia. ---------- assignee: eric.araujo -> berker.peksag keywords: +easy nosy: +berker.peksag resolution: -> fixed stage: commit review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17462> _______________________________________
participants (9)
-
Anastasia.Filatova
-
anatoly techtonik
-
Andrew Svetlov
-
Berker Peksag
-
Ezio Melotti
-
Raymond Hettinger
-
Roundup Robot
-
Tshepang Lekhonkhobe
-
Éric Araujo