6 May
2002
6 May
'02
10:02 a.m.
Should file(fileinput.input()) work? Currently it raises an exception because fileinput.input() returns neither a string nor a buffer object. 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? -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ This is Python. We don't care much about theory, except where it intersects with useful practice.
7996
Age (days ago)
7997
Last active (days ago)
5 comments
3 participants
participants (3)
-
Aahz
-
Guido van Rossum
-
John Machin