CLPython (was Re: merits of Lisp vs Python)

Paul Rubin http
Fri Dec 15 18:40:39 EST 2006


metawilm at gmail.com writes:
> >   a = 'hello'
> >   a[0] = 'H'   # attempt to change first letter to upper case
> 
> As CLPython mirrors Python semantics, this results in a TypeError. The
> internal representation of an immutable Python string is a mutable Lisp
> string, but there is no way you can actually modify it from within CLPython.

How do you manage that?  The compiler can't check.  Is there some kind
of special dispatch on the assignment statement instead of turning it
into a setf?



More information about the Python-list mailing list