yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03859
Re: Interesting python usage
Haha. Thanks, I didn't see that in websites. You're brilliant!
I forgot to mention that the python module returns a tuple too..
Yours,
Boon
----------------------------------------
> From: eudoxos@xxxxxxxx
> To: yade-dev@xxxxxxxxxxxxxxxxxxx
> Date: Mon, 5 Apr 2010 22:29:46 +0200
> Subject: Re: [Yade-dev] Interesting python usage
>
>
>> Oh, yes, I didnt do PyRun_SimpleString and pass my arguments as string, because the arguments change during run time. The arguments are the id's of the bodies, which are currently handled by the Ig2Functor.
> You can make string with those ids, like
>
> string s=string("command(")+lexical_cast(id1)+","+lexical_cast(id2)+");"
> PyRun_SimpleString(s.c_str());
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help : https://help.launchpad.net/ListHelp
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969
Follow ups
References
-
Interesting python usage
From: boon chiaweng, 2010-04-01
-
Re: Interesting python usage
From: Václav Šmilauer, 2010-04-01
-
Re: Interesting python usage
From: boon chiaweng, 2010-04-02
-
Re: Interesting python usage
From: Václav Šmilauer, 2010-04-02
-
Re: Interesting python usage
From: boon chiaweng, 2010-04-03
-
Re: Interesting python usage
From: Václav Šmilauer, 2010-04-03
-
Re: Interesting python usage
From: boon chiaweng, 2010-04-03
-
Re: Interesting python usage
From: boon chiaweng, 2010-04-03
-
Re: Interesting python usage
From: Václav Šmilauer, 2010-04-04
-
Re: Interesting python usage
From: boon chiaweng, 2010-04-05
-
Re: Interesting python usage
From: Václav Šmilauer, 2010-04-05
-
Re: Interesting python usage
From: boon chiaweng, 2010-04-05
-
Re: Interesting python usage
From: boon chiaweng, 2010-04-05
-
Re: Interesting python usage
From: Václav Šmilauer, 2010-04-05