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/2002-May/023973.html below:

[Python-Dev] file(fileinput.input())

[Python-Dev] file(fileinput.input()) [Python-Dev] file(fileinput.input())Guido van Rossum guido@python.org
Mon, 06 May 2002 10:11:53 -0400
> Should file(fileinput.input()) work?  Currently it raises an
> exception because fileinput.input() returns neither a string nor a
> buffer object.

What on earth would you want it to do?  It doesn't seem to make any
sense to me.

> If it should work, would it make sense for file() to look for
> __file__ on instances?  Or should fileinput.input() return a
> subclass of the file object?  Or some other solution I haven't
> thought of?

I have no idea what you want, so I can't answer this.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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