1 |
On Wed, 2006-03-15 at 17:12 +0200, tvali wrote: |
2 |
> Could :P |
3 |
> |
4 |
> Python has this interactive interpreter, what every scripting language has. |
5 |
|
6 |
... |
7 |
|
8 |
> If you are able to run command-line app, send keyboard input and catch |
9 |
> it's output, you're done with it. |
10 |
> |
11 |
> You can also write some small python function, which will parse python |
12 |
> variables into some form, which you can simply parse into something, |
13 |
> what is easily readable in C. |
14 |
|
15 |
An example please. 5 lines of code have more meaning than ~30 emails on |
16 |
the topic that simply state 'it can be done' |
17 |
|
18 |
|
19 |
> 2006/3/15, solar <solar@g.o>: |
20 |
> > On Wed, 2006-03-15 at 10:51 +0100, Paul de Vrieze wrote: |
21 |
> > |
22 |
> > [snip] |
23 |
> > |
24 |
> > > Actually, C++ being strongly related to C, can just use the C python |
25 |
> > > api's. As such it could directly interface with python, and use the |
26 |
> > > python portage api. |
27 |
> > |
28 |
> > If you could demonstrate an 'import portage' and a simple |
29 |
> > printf("PORTDIR=%s\n", PORTDIR); in C I'd be highly interested. |
30 |
> > |
31 |
> > -- |
32 |
> > solar <solar@g.o> |
33 |
> > Gentoo Linux |
34 |
> > |
35 |
> > -- |
36 |
> > gentoo-portage-dev@g.o mailing list |
37 |
> > |
38 |
> > |
39 |
> |
40 |
> |
41 |
> -- |
42 |
> tvali |
43 |
> (e-mail: "qtvali@×××××.com"; msn: "qtvali@×××××.com"; |
44 |
> icq: "317-492-912") |
45 |
> |
46 |
> Ühe eesti internetifirma lehel kohtasin tsitaati: |
47 |
> If you don't do it excellently, dont do it at all. Because if it's not |
48 |
> excellent, it won't be profitable or fun, and if you're not in |
49 |
> business for fun or profit, what the hell are you doing here? |
50 |
> Robert Townsend |
51 |
> |
52 |
-- |
53 |
solar <solar@g.o> |
54 |
Gentoo Linux |
55 |
|
56 |
-- |
57 |
gentoo-portage-dev@g.o mailing list |