Common Lisp translation broken
Hi all, I'm just beginning to play around with PyPy, and I got a traceback when trying to translate Python code to CL code. Here's the traceback : #########
t = Translator(test.if_then_else) t.cl() Traceback (most recent call last): File "<stdin>", line 1, in ? File "translator.py", line 165, in cl return self.generatecode(GenCL, input_arg_types, func) File "translator.py", line 184, in generatecode self.entrypoint, ann)] File "translator.py", line 205, in generatecode1 return g.emitcode(public) TypeError: emitcode() takes exactly 1 argument (2 given)
#########
A quick and dirty (partial) fix could be to add a "public=True" argument to the GenCL.emitcode() method, but I'm just a PyPy newbie for now, I don't really know how everything works and I'm not a Lisp Expert, so ... I just raise up the error here :-) Cheers, Adrien.
Hi Adrien, On Fri, Jan 07, 2005 at 09:16:27PM +0100, Adrien Di Mascio wrote:
TypeError: emitcode() takes exactly 1 argument (2 given)
A quick and dirty (partial) fix could be to add a "public=True" argument to the GenCL.emitcode() method, but I'm just a PyPy newbie for now, I don't really know how everything works and I'm not a Lisp Expert, so ... I just raise up the error here :-)
I checked this fix in. It seems that "public" was needed by the Pyrex generator, but the CL generator doesn't know what to do with that (at least for now), so it should just ignore it. Armin
participants (2)
-
Adrien Di Mascio -
Armin Rigo