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

Robert Brewer fumanchu at amor.org
Fri May 18 18:35:30 CEST 2007


Guido van Rossum 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.

I must be dense, because I don't see how the proposal "makes it easier to identify modules that engage in I/O". Who's supposed to be doing the identification and when? And how will it not be fooled by import and plain 'ol cross-module references?

Robert Brewer System Architect Amor Ministries fumanchu at amor.org



More information about the Python-3000 mailing list