[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
- Previous message: [Python-3000] Radical idea: remove built-in open (requireimport io)
- Next message: [Python-3000] Radical idea: remove built-in open (require import io)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Radical idea: remove built-in open (requireimport io)
- Next message: [Python-3000] Radical idea: remove built-in open (require import io)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]