yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03857
Re: 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<string>(id1)+","+lexical_cast<string>(id2)+");"
PyRun_SimpleString(s.c_str());
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