Problem with JPython!
Calvelo Daniel
dcalvelo at pharion.univ-lille2.fr
Fri Sep 1 15:29:39 EDT 2000
ARG3000 <snake-or-bear at worldofbeverage.net> wrote:
: In article <slrn8qsir6.i9k.scarblac-spamtrap at flits104-37.flits.rug.nl>,
: scarblac-spamtrap at pino.selwerd.nl (Remco Gerlich) wrote:
:> ARG3000 wrote in comp.lang.python:
:>> Is there any easy way to get a string back from exec besides
:>> redirecting
:>> stdout?
:>
:> You can set a variable in a block of code, for instance.
:>
:> exec "a = 'Some string'"
:>
:> What do you want to do exactly? I have a feeling you're not doing the
:> most logical thing.
: That's what i ended up doing...
Can't you exec the definition of a function and call it?
(In case you have several calls to it.)
HTH, DCA
-- Daniel Calvelo Aros
calvelo at lifl.fr
More information about the Python-list
mailing list