Ticket #583 (new enhancement)

Opened 7 years ago

Last modified 6 years ago

Examples for python bindings

Reported by: alip Owned by:
Priority: Sometime Milestone:
Component: bindings/python Version: scm
Keywords: Cc: peper
Blocked By: Blocking:
Distribution: Gentoo

Description

The attached patch adds 4 examples for python bindings.

Attachments

paludis-python-examples.diff Download (9.5 KB) - added by alip 7 years ago.
paludis-python-examples.diff
paludis-python-examples-v2.diff Download (9.3 KB) - added by alip 6 years ago.
paludis-python-examples-v2.diff

Change History

Changed 7 years ago by alip

paludis-python-examples.diff

comment:1 Changed 6 years ago by ciaranm

Please update these for the new Query syntax in ticket:559.

Changed 6 years ago by alip

paludis-python-examples-v2.diff

comment:2 Changed 6 years ago by alip

Done, I must say the new Query syntax is sweet :-)

comment:3 Changed 6 years ago by ciaranm

  • Cc peper added

Mm, it'd be nice if we could get these exactly in line with the C++ examples. My measure of how complete bindings are is whether they can implement C++ examples in their entirety. AFAICS, for these we're missing:

  • The details on FetchActionError?
  • slot and additional requirements are missing from dep specs
  • The dep spec example is missing the matches bit, but I think the Python bindings have enough to implement that

I don't have boost.python on my laptop, and I won't have access to my desktop for another week or so, so I won't be able to do bindings work just now. But if no-one else picks them up I will.

Note: See TracTickets for help on using tickets.