[python-on-lisp-cvs] r4 - in trunk/pythononlisp: . doc

agallagher at common-lisp.net agallagher at common-lisp.net
Fri Nov 24 01:34:31 UTC 2006


Author: agallagher
Date: Thu Nov 23 20:34:31 2006
New Revision: 4

Modified:
   trunk/pythononlisp/doc/README
   trunk/pythononlisp/pythononlisp.lisp
Log:
fixed line in pygetarg, in keeping with the suggestion of Marco Gidde on comp.lang.lisp of 12/06/2006, so that it is consistent with the new behavior of cffi:mem-ref.

Modified: trunk/pythononlisp/doc/README
==============================================================================
--- trunk/pythononlisp/doc/README	(original)
+++ trunk/pythononlisp/doc/README	Thu Nov 23 20:34:31 2006
@@ -1,7 +1,7 @@
 # Intro
 
 Welcome on pythononlisp, the Common Lisp package that aims to let you
-access the glories and treasures of the pyton standard library
+access the glories and treasures of the pyton standard library.
 
 # Non-Warranty
 
@@ -12,7 +12,7 @@
 other implementations. If you do get it to work, please tell us how! 
 We believe this code is probably a short step away from being
 compatible with most implementations, but that step requires a
-someone an experienced hand.
+someone with an experienced hand.
 
 # Quick Start
 
@@ -37,7 +37,7 @@
 patch. The goal is to modify that form so that it handles Windows, OS
 X, and the top Linux distros.
 
-2) CFFI (common foreign function interface)
+2) CFFI (common foreign function interface) (version >= 0.9.2)
 
 pythononlisp uses CFFI to talk to Python. If you install pythononlisp
 through asdf-install, then cffi will also be installed automatically
@@ -62,8 +62,8 @@
 
 3) USING. 
 
+  (py::py "print \"Hello from python\"")
   (py::py get-web-page "http://www.google.com")
-  (py::py "print \"Hello from python\""get-web-page "http://www.google.com")
 
 
 # Documentation

Modified: trunk/pythononlisp/pythononlisp.lisp
==============================================================================
--- trunk/pythononlisp/pythononlisp.lisp	(original)
+++ trunk/pythononlisp/pythononlisp.lisp	Thu Nov 23 20:34:31 2006
@@ -216,7 +216,7 @@
   "Helper function for handling python arguments, used by gen-pycallback. Should never be used directly from code - use defpyfun with its arg format"
   (case type
     (long (cffi:mem-ref variable :long))
-    (string (cffi:foreign-string-to-lisp (cffi:mem-ref variable :string)))))
+    (string (cffi:mem-ref variable :string))))
 
 (defmacro defpycallbackentry (function-name return-type input)
   "Define a callback entry, which is the cffi:def-callback stuff"



More information about the Python-on-lisp-cvs mailing list