[clpython-devel] Problem with Python 'open'

Willem Broekema metawilm at gmail.com
Wed May 25 08:08:17 UTC 2011


Hi Mark,

On Tue, May 24, 2011 at 12:15 AM, Mark McWiggins
<mark at icanfixyouremail.com> wrote:
> I have CLPython running on a small example with no I/O, but
> when I try opening a file I get:
>
>> Error: Incorrect keyword arguments in (NIL "r") .
>> While executing: OPEN, in process listener(1).

There was a typo that resulted in a symbol clash with Lisp's "open" in
implementations other than Allegro's "Modern" mode. If you have
checked out from the git repo, just pull the fix I just committed,
otherwise (e.g. when using Quicklisp) please manually apply this
change:

 https://github.com/franzinc/cl-python/commit/84f0f775bf359ab60ba78e2f58587c316463a6d8

Also, the file handling in CLPython is not well-tested. From a quick
test the basic open, read and close seem to work, but don't be
surprised if other actions fail.

> Suggestions please! I'm not much of a Lisp hacker, just trying to get a
> Python script to run (much) faster.

I'm glad you're trying out CLPython. I'm not sure you get the much
faster speed though. Keep us updated.

- Willem




More information about the Clpython-devel mailing list