interpreter improvements

Christopher A. Craig com-nospam at ccraig.org
Sat Jul 21 10:21:59 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

kp87 at lycos.com (kevin parks) writes:

> Anyway, i spend all day in the interpreter and i was
> hoping to make it a more pleasant experience. I can't
> believe you can't do:
> 
> >>> foo(somereallylongbitofcodegoeshere,
> itsrealllybothersomeifyoumistype) [change a bunch of crap here]
> >>> !foo

You can't do this in Unix either.  With readline support you can use
emacs keybindings to go back, forward, search, etc., but no Python
interpreter that I know of messes with the syntax of the language to
enhance command history or expansion.  I think this is a good thing.
In shell these history and expansion tricks are part of the language,
that is "!foo" in shell means "run the last command starting with the
string 'foo'".  This is not part of the Python language and I don't
think you should be able to type something into the interpreter which
is not part of the language.

Now porting zsh's ZLE to Python is another matter entirely ;-)

- -- 
Christopher A. Craig <com-nospam at ccraig.org>
"May the source be with you."  -- Open Source Software mantra
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt

iEYEARECAAYFAjtZkAYACgkQjVztv3T8pzv/rACgs+o6Uva6bPpPP6INC6aYxJ/r
qBoAn2ZgZoiQQbfTbC1YOAHtfZd0e6SG
=HAOx
-----END PGP SIGNATURE-----




More information about the Python-list mailing list