Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-portage-dev
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-portage-dev@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: [API] First steps for creating an API for portage
Date: Fri, 18 Jun 2010 08:35:13 +0200
On 18-06-2010 02:08:04 +0200, René 'Necoro' Neumann wrote:
> In parallel (or thereafter), we build the C-bindings. The API for these
> bindings probably look different -- but I guess they should be
> implemented in terms of the library created above.
> 
> By example:
> 
> - Operation: get the list of categories
> - Python-API: portage.api.categories() : Category list
> - Implementation: def categories(): return ....
> - C-API: category * categories()
> - C-Implementation: some wrapper around portage.api.categories

If you want to deliver a C implementation, I'd wonder why you wouldn't
just make a full C implementation and create Python wrappers for them
instead of the other way around.  Might accidentially speed up Portage,
and make tools like portage-utils happy.


-- 
Fabian Groffen
Gentoo on a different level


Replies:
Re: [API] First steps for creating an API for portage
-- Brian Dolbec
Re: [API] First steps for creating an API for portage
-- Brian Harring
References:
[API] First steps for creating an API for portage
-- René 'Necoro' Neumann
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[API] First steps for creating an API for portage
Next by thread:
Re: [API] First steps for creating an API for portage
Previous by date:
[API] First steps for creating an API for portage
Next by date:
Re: [API] First steps for creating an API for portage


Updated Jun 13, 2012

Summary: Archive of the gentoo-portage-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.