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 2007年02月21日 15:40 by lunar_yorn, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue1665333-py3k.patch | sandro.tosi, 2010年09月28日 20:14 | |||
| issue1665333-py3k-v2.patch | sandro.tosi, 2010年09月28日 20:34 | |||
| Messages (14) | |||
|---|---|---|---|
| msg31302 - (view) | Author: LunarYorn (lunar_yorn) | Date: 2007年02月21日 15:40 | |
Python seems to lack documentation for the OptionGroup class and related methods in the optparse modul. In detail documentation of the following classes and methods in optparse is missing: - OptionGroup - OptionParser.add_option_group - OptionParser.get_option_group These classes and methods also lack docstrings. I found this in Python 2.4.4c1 which comes with Ubuntu 6.10 Edgy. It seems, that Python 2.5 on Ubuntu Edgy also suffers from this bug. |
|||
| msg31303 - (view) | Author: Steven Bethard (bethard) * (Python committer) | Date: 2007年02月26日 17:37 | |
The docstrings need to be modified in the Optik package (from which the stdlib optparse module is derived). I've filed you an appropriate patch there: http://sourceforge.net/tracker/index.php?func=detail&aid=1669315&group_id=38019&atid=421097. I'll see what I can do about adding some documentation. My preference is only to document OptionParser.add_option_group -- I think making the OptionGroup API public is a mistake (like making the STORE_ACTIONS, etc. APIs public was). |
|||
| msg31304 - (view) | Author: Steven Bethard (bethard) * (Python committer) | Date: 2007年02月26日 17:39 | |
Looks like the optparse docs are also auto-generated from optik. Here's the first line of liboptparse.tex: % THIS FILE IS AUTO-GENERATED! DO NOT EDIT! So I guess this needs to be handled in the optparse bugs. |
|||
| msg31305 - (view) | Author: LunarYorn (lunar_yorn) | Date: 2007年02月26日 17:45 | |
Thanks for filing the patch there! I didn't know, that optparse is developt outside of Python... Anyway I think you're right not to comment the whole api. I did not intend that. I would be content with a little note in the docs quickly explains OptionGroups and how to create them. More shouldn't be told, since they are only useful for formatting help output. I just needed such a thing for my recent project and was short of overwriting the OptionParser and HelpFormatter classes. For that purpose I looked into the sources, where I found the OptionGroup capabilities. A little note would have shortened the development of the option parsing code quite a bit... ;) |
|||
| msg31306 - (view) | Author: Neal Norwitz (nnorwitz) * (Python committer) | Date: 2007年03月16日 06:59 | |
LunarYorn, thanks for the report. bediviere, thanks to for filing a report with optik. Since the issue is tracked there, I'm closing this report. |
|||
| msg75845 - (view) | Author: A.M. Kuchling (akuchling) * (Python committer) | Date: 2008年11月14日 00:32 | |
Re-opening, since Optik is no longer externally maintained. |
|||
| msg116613 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010年09月16日 21:20 | |
Should this be left with AMK or should it be reassigned to docs@python? |
|||
| msg116617 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2010年09月16日 21:32 | |
Adding docs@ to nosy. amk: Please reassign to docs@ if you don’t intend to work on this. |
|||
| msg117459 - (view) | Author: Sandro Tosi (sandro.tosi) * (Python committer) | Date: 2010年09月27日 18:27 | |
I will work on it, it noone objects. Cheers, Sandro |
|||
| msg117544 - (view) | Author: Sandro Tosi (sandro.tosi) * (Python committer) | Date: 2010年09月28日 20:14 | |
Hello, attached is a patch to improve the OptionGroup documentation. I've also changed usage->Usage and options->Options in the examples output, since now the code tries to guess the lower case word and rewrites with the capitalized one. I'm willing to improve the patch in case there's something not good (and I bet there is, since it's my first complex patch for Python documentation) so please be nice :) and point me to parts that can be improved. Thanks in advance, Sandro |
|||
| msg117547 - (view) | Author: Sandro Tosi (sandro.tosi) * (Python committer) | Date: 2010年09月28日 20:34 | |
sorry, I forgot to wrap at column 80, this patch just changes that. |
|||
| msg125040 - (view) | Author: Sandro Tosi (sandro.tosi) * (Python committer) | Date: 2011年01月02日 09:58 | |
Could someone give a look to this patch? I can work on fixing the missing stuff (if any :)). |
|||
| msg125055 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2011年01月02日 14:23 | |
Looks good, applied in r87627 (after removing stray tabs). |
|||
| msg132386 - (view) | Author: Weeble (weeble) | Date: 2011年03月28日 08:45 | |
I think the documentation for get_option_group is not right. I've created a new bug: http://bugs.python.org/issue11699 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:22 | admin | set | github: 44601 |
| 2011年03月28日 08:45:06 | weeble | set | nosy:
+ weeble messages: + msg132386 |
| 2011年01月02日 14:23:55 | georg.brandl | set | status: open -> closed nosy: + georg.brandl messages: + msg125055 resolution: fixed |
| 2011年01月02日 09:58:23 | sandro.tosi | set | nosy:
akuchling, nnorwitz, bethard, lunar_yorn, eric.araujo, sandro.tosi, docs@python, BreamoreBoy messages: + msg125040 stage: patch review |
| 2010年11月12日 21:04:11 | akuchling | set | assignee: akuchling -> |
| 2010年09月28日 20:34:00 | sandro.tosi | set | files:
+ issue1665333-py3k-v2.patch messages: + msg117547 |
| 2010年09月28日 20:14:51 | sandro.tosi | set | files:
+ issue1665333-py3k.patch keywords: + patch messages: + msg117544 |
| 2010年09月27日 18:27:55 | sandro.tosi | set | nosy:
+ sandro.tosi messages: + msg117459 |
| 2010年09月16日 21:32:28 | eric.araujo | set | nosy:
+ docs@python, eric.araujo messages: + msg116617 versions: + Python 3.1, Python 3.2 |
| 2010年09月16日 21:20:10 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg116613 |
| 2008年11月14日 00:32:11 | akuchling | set | status: closed -> open versions: + Python 2.7, - Python 2.4 nosy: + akuchling title: Documentation missing for OptionGroup class in optparse -> Documentation missing for OptionGroup class in optparse messages: + msg75845 assignee: akuchling resolution: not a bug -> (no value) |
| 2007年02月21日 15:40:20 | lunar_yorn | create | |