Bug#640846: python-gobject: No way to find gi.repository module contents
Tony Houghton
h at realh.co.uk
Wed Sep 7 21:26:08 UTC 2011
Package: python-gobject
Version: 2.28.6-4
Severity: normal
Dear Maintainer,
*** Please consider answering these questions, where appropiate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
I can't find any way to discover the contents of a module
(pseudo-module? namespace?) imported from gi.repository. For example:
>>> from gi.repository import Pango
>>> help(Pango)
Help on DynamicModule in gi.repository object:
gi.repository.Pango = class DynamicModule(__builtin__.object)
| Methods defined here:
|
| __dir__(self)
|
| __getattr__(self, name)
|
| __init__(self, namespace)
|
| __repr__(self)
|
|
----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
(END)
This is almost entirely useless.
There is plenty of information in .gir files, so why isn't this
available to python help?
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-gobject depends on:
ii gir1.2-glib-2.0 0.10.8-2
ii libc6 2.13-18
ii libffi5 3.0.10~rc10-3
ii libgirepository-1.0-1 0.10.8-2
ii libglib2.0-0 2.28.6-1
ii python 2.6.7-3
ii python2.6 2.6.7-4
ii python2.7 2.7.2-5
Versions of packages python-gobject recommends:
ii python-gobject-cairo 2.28.6-4
Versions of packages python-gobject suggests:
pn python-gobject-dbg <none>
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list