From pjb at informatimago.com Fri Jan 11 21:35:07 2013 From: pjb at informatimago.com (Pascal J. Bourguignon) Date: Fri, 11 Jan 2013 22:35:07 +0100 Subject: [clpython-devel] No such symbol in pkg clpython: py-< In-Reply-To: References: Message-ID: <75FF6D9E-E056-48EF-B6F0-B85210567E8D@informatimago.com> Hi! Trying clpython from quick lisp, it fails with the following error. Obviously, somebody forgot with-standard-io-syntax between format and intern... ; SLIME 2012-09-04 cl-user> (ql:quickload :clpython) To load "clpython": Load 1 ASDF system: clpython ; Loading "clpython" ;;; Compiling Python grammar for CL-Yacc... .................................................. [package clpython.lispy.stuff].................... [package clpython.module.array]................... [package clpython.module.binascii]................ [package clpython.module.cstringio]............... [package clpython.module.errno]................... [package clpython.module.exceptions].............. [package clpython.module.gc]...................... [package clpython.module.imp]..................... [package clpython.module.math].................... [package clpython.module.operator]................ [package clpython.module.posix]................... [package clpython.module._random]................. [package clpython.module.re]...................... [package clpython.module._socket]................. [package clpython.module.string].................. [package clpython.module.symbol].................. [package clpython.module.sys]..................... [package clpython.module.thread].................. [package clpython.module.time]...1 No such symbol in pkg clpython: py-< [Condition of type simple-condition] Restarts: 0: [continue] Return from BREAK. 1: [retry-compile-file] Retry compiling #P"/Volumes/Data/pbourguignon/quicklisp/dists/quicklisp/software/clpython-20110730-git/lib/operator.lisp" 2: [skip-compile-file] Skip compiling #P"/Volumes/Data/pbourguignon/quicklisp/dists/quicklisp/software/clpython-20110730-git/lib/operator.lisp" 3: [retry] Retry compiling #. 4: [accept] Continue, treating compiling # as having been successful. 5: [abort] Give up on "clpython" --more-- Backtrace: 0: (clpython.module.operator::sym->op #) 1: (#) 2: (ccl::cheap-eval-in-environment (list* 'progn (loop clpython.module.operator::for (clpython.module.operator::m.. 3: (ccl::cheap-eval (list* 'progn (loop clpython.module.operator::for (clpython.module.operator::meth clpython.mo.. 4: (ccl::read-dispatch # # #) 20: (nil #) 21: (# # # . 76455387)) 23: (# # # #) 26: ((:internal ccl::with-compilation-unit-body (asdf::perform-plan (list)))) 27: (ccl::call-with-compilation-unit # ((#1=# . #) 76455429) 30: (nil #) 31: ((:internal (asdf:operate (t t)))) 32: (asdf::call-with-system-definitions # asdf:load-op "clpython" :verbose nil) 34: (ccl::%%standard-combined-method-dcode ((#) nil #) 36: (asdf:oos asdf:load-op "clpython" :verbose nil) 37: ((:internal quicklisp-client::apply-load-strategy)) 38: (quicklisp-client::call-with-macroexpand-progress #) --more-- -- __Pascal Bourguignon__ http://www.informatimago.com From metawilm at gmail.com Sat Jan 12 17:01:40 2013 From: metawilm at gmail.com (Willem Broekema) Date: Sat, 12 Jan 2013 18:01:40 +0100 Subject: [clpython-devel] No such symbol in pkg clpython: py-< In-Reply-To: <75FF6D9E-E056-48EF-B6F0-B85210567E8D@informatimago.com> References: <75FF6D9E-E056-48EF-B6F0-B85210567E8D@informatimago.com> Message-ID: Hi Pascal, On Fri, Jan 11, 2013 at 10:35 PM, Pascal J. Bourguignon < pjb at informatimago.com> wrote: > > Hi! > > Trying clpython from quick lisp, it fails with the following error. > > Obviously, somebody forgot with-standard-io-syntax between format and > intern... > > Thanks for the report. It should be fixed now, in the repo on Github. - Willem -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjb at informatimago.com Mon Jan 14 13:32:44 2013 From: pjb at informatimago.com (Pascal J. Bourguignon) Date: Mon, 14 Jan 2013 14:32:44 +0100 Subject: [clpython-devel] =?utf-8?b?YCMxPSgsKSAuLi4gYCMxIyBmYWlscyBvbiBj?= =?utf-8?b?Y2wu?= Message-ID: <908d72caed6a462613086085c014f120@voyager.informatimago.com> Hi! When trying to load a module (import ast) in clpython on ccl (1.9-dev-r15508), it fails on `(let* ((.undecorated-func #1#) ...) with the following patch, it works better. Since the expansion of #\` is implementation dependent, it might be safer to avoid kludges involving it. ------------------------------------------------------------------------------------------------------ diff --git a/compiler/compiler.lisp b/compiler/compiler.lisp index 6bbc61a..adf8bb7 100644 --- a/compiler/compiler.lisp +++ b/compiler/compiler.lisp @@ -1212,15 +1212,19 @@ LOCALS shares share tail structure with input arg locals." (if **-arg #x08 0) (if generator-p #x20 0))))) (when (keywordp fname) - (return-from funcdef-stmt-1 `#1=(make-py-function :name ',fname - :context-name ',context-fname - :lambda ,func-lambda - :func-globals ,(get-module-namespace e) - :func-code ,func-code))) + (return-from funcdef-stmt-1 `(make-py-function :name ',fname + :context-name ',context-fname + :lambda ,func-lambda + :func-globals ,(get-module-namespace e) + :func-code ,func-code))) (let ((art-deco '.undecorated-func)) (dolist (x (reverse decorators)) (setf art-deco `(py-call ,x ,art-deco))) - `(let* ((.undecorated-func #1#) + `(let* ((.undecorated-func (make-py-function :name ',fname + :context-name ',context-fname + :lambda ,func-lambda + :func-globals ,(get-module-namespace e) + :func-code ,func-code)) (.decorated-func ,art-deco)) ;; Ugly special case: ;; class C: ------------------------------------------------------------------------------------------------------ -- __Pascal Bourguignon__ From metawilm at gmail.com Wed Jan 16 17:55:18 2013 From: metawilm at gmail.com (Willem Broekema) Date: Wed, 16 Jan 2013 18:55:18 +0100 Subject: [clpython-devel] `#1=(,) ... `#1# fails on ccl. In-Reply-To: <908d72caed6a462613086085c014f120@voyager.informatimago.com> References: <908d72caed6a462613086085c014f120@voyager.informatimago.com> Message-ID: On Mon, Jan 14, 2013 at 2:32 PM, Pascal J. Bourguignon < pjb at informatimago.com> wrote: > Hi! > > When trying to load a module (import ast) in clpython on ccl > (1.9-dev-r15508), it fails > on `(let* ((.undecorated-func #1#) ...) > > with the following patch, it works better. Since the expansion of #\` is > implementation dependent, > it might be safer to avoid kludges involving it. > Thanks for the report and fix! I've applied it on Github. - Willem -------------- next part -------------- An HTML attachment was scrubbed... URL: