[Python-3000] Radical idea: remove built-in open (require import io) (original) (raw)

Collin Winter collinw at gmail.com
Fri May 18 19:02:35 CEST 2007


On 5/17/07, Guido van Rossum <guido at python.org> wrote:

Do people think it would be too radical if the built-in open() function was removed altogether, requiring all code that opens files to import the io module first? This would make it easier to identify modules that engage in I/O.

+1

Thinking out loud: I wonder if the io module should also become the canonical source for stdin, stdout, stderr instead of sys.

Collin Winter



More information about the Python-3000 mailing list