[Python-3000] Radical idea: remove built-in open (require import io)
g.brandl at gmx.net
Fri May 18 20:21:43 CEST 2007
Baptiste Carvello schrieb:
> Guido van Rossum a écrit :
>> 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.
> Will someone think of the interactive users ?
They can still put "import sys, os, io" in their PYTHONSTARTUP file.
Or use IPython.
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-3000