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 680353 - Add TreePath.__getitem__()
Add TreePath.__getitem__()
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: gobject
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-21 02:55 UTC by Simon Feltman
Modified: 2012-07-24 13:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Added TreePath.__getitem__() (1.71 KB, patch)
2012-07-21 03:24 UTC, Simon Feltman
none Details | Review

Description Simon Feltman 2012-07-21 02:55:13 UTC
Add support sub-script operator to TreePaths as was the case in PyGtk.
Comment 1 Simon Feltman 2012-07-21 03:24:46 UTC
Created attachment 219365 [details] [review]
Added TreePath.__getitem__()

Use pythons sub-script operator for indexing into TreePaths
as was the case in PyGtk. Also changed __iter__ to use
TreePath.get_indices as opposed to formatting and re-parsing
a string for getting an index list.
Comment 2 Martin Pitt 2012-07-24 13:18:22 UTC
Thanks! Applied.