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

Brett Cannon brett at python.org
Fri May 18 05:53:20 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.

I support it.  My security work wanted open and execfile yanked out of the
built-in namespace anyway.  =)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20070517/975a52f6/attachment.htm 

More information about the Python-3000 mailing list