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-January/051017.html below:

[Python-Dev] PEP 246, redux

[Python-Dev] PEP 246, redux [Python-Dev] PEP 246, reduxParamjit Oberoi psoberoi at gmail.com
Thu Jan 13 22:43:53 CET 2005
On Thu, 13 Jan 2005 20:40:56 +0100, Alex Martelli <aleax at aleax.it> wrote:
>
> So please explain what's imperfect in wrapping a str into a StringIO?

If I understand Philip's argument correctly, the problem is this:

def print_next_line(f: file):
    print f.readline()

s = "line 1\n" "line 2"

print_next_line(s)
print_next_line(s)

This will print "line 1" twice.

-param
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