After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 658557 - Can't find some functions in python
Can't find some functions in python
Status: RESOLVED DUPLICATE of bug 646788
Product: pango
Classification: Platform
Component: general
1.28.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2011-09-08 13:32 UTC by Tony Houghton
Modified: 2012-08-25 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tony Houghton 2011-09-08 13:32:19 UTC
When using Pango in python via gi.repository I can't find certain functions eg pango_attr_weight_new. AFAICT from reading the .gir file in the source this should be available as Pango.attr_weight_new. Nor can I find a Pango.Attribute object.

How can I find the contents of a module imported from gi.repository? If I run python interactively and type

from gi.repository import Pango
help(Pango)

I just get some information about generic members of a gi helper class.
Comment 1 Behdad Esfahbod 2011-09-08 15:08:12 UTC
Yeah, the attributes are not bound.  They're tricky.  That's filed, can't find it right now.
Comment 2 Tony Houghton 2011-09-08 17:39:49 UTC
OK. I can work around this by using markup instead so it's not a big deal.
Comment 3 Behdad Esfahbod 2012-08-25 20:14:06 UTC

*** This bug has been marked as a duplicate of bug 646788 ***