A RetroSearch Logo

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

Search Query:

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

[Python-Dev] Replacement for print in Python 3.0

[Python-Dev] Replacement for print in Python 3.0Fredrik Lundh fredrik at pythonware.com
Fri Sep 2 16:11:20 CEST 2005
Steven Bethard wrote:

> But that would be just as easy with a print() function.  In the current syntax:
>
>    print 'foo:', foo, 'bar:', bar, 'baz:', baz,
>    print 'frobble', frobble
>
> In my proposed function:
>
>    print('foo:', foo, 'bar:', bar, 'baz:', baz,
>          'frobble', frobble)
>
> To my (admittedly biased) eyes, the second version more obviously
> prints to a single line.

next use case:

    print 'foo:', foo, 'bar:', bar, 'baz:', baz,
    if frobble > 0:
        print 'frobble', frobble
    else:
        print 'no frobble today'

</F> 



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