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 2005年04月15日 19:39 by ahmado, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg25039 - (view) | Author: ahmado (ahmado) | Date: 2005年04月15日 19:39 | |
When using the "callback" action, optparse requires that you STILL specify a "dest" parameter, though it is not required or used by the option parser. In fact, if you do not include the "dest" parameter, your options will still work properly, but optparse will generate an exception when calling the "--help" option. Not specifying a "dest" parameter will result in the following Exception when using the default "--help" or "- h" option: File "c:\Python23\lib\optparse.py", line 229, in format_option_strings metavar = option.metavar or option.dest.upper() AttributeError: 'NoneType' object has no attribute 'upper' <workaround> by simply adding a bogus bug, the --help / -h option works properly even though the dest isn't actually used. </workaround> |
|||
| msg25040 - (view) | Author: Greg Ward (gward) (Python committer) | Date: 2005年07月22日 02:03 | |
Logged In: YES user_id=14422 I'm pretty sure I fixed this in Optik 1.5 / Python 2.4. Can you 1) verify if the bug is still there in Python 2.4 and 2) if so, supply a small script demonstrating the problem? |
|||
| msg25041 - (view) | Author: Greg Ward (gward) (Python committer) | Date: 2005年08月10日 00:57 | |
Logged In: YES user_id=14422 ahmado -- please check if this bug is still present in Python 2.4 / Optik 1.5. If you do not respond in a week or two, I will assume that the bug is fixed and close this report. |
|||
| msg25042 - (view) | Author: Greg Ward (gward) (Python committer) | Date: 2006年06月10日 16:42 | |
Logged In: YES user_id=14422 No response from original poster after almost a year, so I'm assuming that I did indeed fix this bug in Optik 1.5 / Python 2.4. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:10 | admin | set | github: 41865 |
| 2005年04月15日 19:39:32 | ahmado | create | |