[Python-Dev] Replacement for print in Python 3.0

Barry Warsaw barry at python.org
Sun Sep 4 18:53:49 CEST 2005


On Sat, 2005-09-03 at 13:12, Martin Blais wrote:

> (defun python-abbrev-print ()
>   "Help me change old habits."
>   (insert "print()") (backward-char 1) t)
> (put 'python-abbrev-print 'no-self-insert t)
> (define-abbrev python-mode-abbrev-table "print" "" 'python-abbrev-print)

LOL!  That's a great solution for the 5 of us dinosaurs still using the
One True Editor. :)

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20050904/1ecd5fc2/attachment.pgp


More information about the Python-Dev mailing list