[gstreamer-bugs] [Bug 425847] New: Silently overrides some functions of default module optparse
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Tue Apr 3 05:45:58 PDT 2007
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=425847
GStreamer | gst-python | Ver: HEAD CVS
Summary: Silently overrides some functions of default module
optparse
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-python
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: kaeso at email.it
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: 2.15/2.16
GNOME milestone: Unspecified
Please describe the problem:
gst-python seems to influence the behaviour of optparse.OptionParser() when
invoke with --help.
Doing and `import gst` in a python program using optparse will cause all help
text to be displayed like this:
Usage:
istanbul [OPTION...] - GStreamer initialization
Help Options:
-?, --help Show help options
--help-all Show all help options
--help-gst Show GStreamer Options
Application Options:
If you import gst after parsing the arguments, all works fine, displaying
original help text.
This bug is being worked around in many applications (like istanbul and
jokosher) just postponing `import gst`, but it would be better fixed directly
in gst-python
Steps to reproduce:
1. import gst, optparse
2. implement optparse.OptionParser()
3. launch your app with --help
4. try again without importing gst to see the difference
Actual results:
steps 1,2,3: a fixed help text which says:
Usage:
istanbul [OPTION...] - GStreamer initialization
Help Options:
-?, --help Show help options
--help-all Show all help options
--help-gst Show GStreamer Options
Application Options:
Expected results:
the same as step 4: see my custom help text :).
Does this happen every time?
Yes
Other information:
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=425847.
More information about the Gstreamer-bugs
mailing list