Convert arbitrary function inputs to string
Robert Kern
robert.kern at gmail.com
Thu Jan 6 12:14:52 EST 2011
On 1/6/11 10:42 AM, David Dreisigmeyer wrote:
> Yes, I'm calling Gambit-C from Python and would like to make this
> cleaner. Instead of having to do something like:
>
> gambit.eval ("(print \"Hello\n\")")
>
> I want to do this:
>
> gambit.eval (print "Hello\n")
>
> so that the expression following gambit.eval is a standard scheme expression.
Sorry, Python's syntax is not extensible like this.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list