A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-September/056110.html below:

[Python-Dev] Replacement for print in Python 3.0

[Python-Dev] Replacement for print in Python 3.0 [Python-Dev] Replacement for print in Python 3.0Martin Blais martin.blais at gmail.com
Sat Sep 3 19:12:02 CEST 2005
On 9/3/05, Barry Warsaw <barry at python.org> wrote:
> On Fri, 2005-09-02 at 21:42, Guido van Rossum wrote:
> 
> I do hate having to write two parentheses -- it's more than the extra
> keystrokes.  It's that I have to use two shifted characters and I have
> to be sure to close the construct, which can be a PITA when the start of
> the function call is separated from the end by many lines.

(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)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4