Re: Pivy problem and some other stuff

2007-09-02 Thread Zentrader
> What meaningless error message are you talking about!? > > Ciao, > Marc 'BlackJack' Rintsch My mistake. It appears that this is no longer the case. And my apologies. It was probably in version 2.3 or earlier that this was a problem. Given the way that the Python community constantly

Re: Pivy problem and some other stuff

2007-09-02 Thread Marc 'BlackJack' Rintsch
On Sun, 02 Sep 2007 14:35:00 +, Zentrader wrote: > You can also use exec, but someone will tell you that the sky is going > to fall if you do. I am one of the ones who think that calling a > function with > results = [f() for f in funcs] > doesn't "work" because it gives a meaningless error m

Re: Pivy problem and some other stuff

2007-09-02 Thread Zentrader
On Aug 30, 8:10 pm, Scott David Daniels <[EMAIL PROTECTED]> wrote: > Marc 'BlackJack' Rintsch wrote: > > A fine repy > > > In [57]: funcs = [a, b] > > In [58]: funcs > > Out[58]: [, ] > > > In [59]: funcs[0]() > > Out[59]: 1 > > > In [60]: funcs[1]() > > Out[60]: 2 > > and a "list comprehension" al

Re: Pivy problem and some other stuff

2007-09-01 Thread azrael
Look, what I think about is this. I'd like to make a multi dimensional list in which evry single element would represent a function. By looping through the list I would execute the functions. But not only that, it is possible to experiment with recoursions. the return 1 2 and 3 examples are just a

Re: Pivy problem and some other stuff

2007-08-30 Thread Scott David Daniels
Marc 'BlackJack' Rintsch wrote: A fine repy > In [57]: funcs = [a, b] > In [58]: funcs > Out[58]: [, ] > > In [59]: funcs[0]() > Out[59]: 1 > > In [60]: funcs[1]() > Out[60]: 2 and a "list comprehension" allows you to call these things no matter how long the list is. So after the above: >>

Re: Pivy problem and some other stuff

2007-08-30 Thread Bruno Desthuilliers
azrael a écrit : > Hy Guys > > Did anyone manage to install and use Pivy. I'm trying it and cant come > closer to the goal I get the message: > Please set the COIN3DDIR environment variable to your Coin root > directory! ** Aborting ** > > Familiar to anyone? > I don't even know what Pivy is, bu

Re: Pivy problem and some other stuff

2007-08-30 Thread Marc 'BlackJack' Rintsch
On Thu, 30 Aug 2007 19:21:47 +, azrael wrote: > And there is anoher question in my mind. > Is there a way to make a list in python which contains a series of > functions. I did'n try it. Something like: Why don't you just try!? def a(): return 1 > def b(): return 2 >

Pivy problem and some other stuff

2007-08-30 Thread azrael
Hy Guys Did anyone manage to install and use Pivy. I'm trying it and cant come closer to the goal I get the message: Please set the COIN3DDIR environment variable to your Coin root directory! ** Aborting ** Familiar to anyone? And there is anoher question in my mind. Is there a way to make a li