[New-bugs-announce] [issue2374] Use of builtin file should give Py3k warning

Benjamin Peterson report at bugs.python.org
Tue Mar 18 01:13:53 CET 2008


New submission from Benjamin Peterson <musiccomposition at gmail.com>:

This patch causes the use of builtin file to give a Py3k warning.

When Python starts up, distutils.text_file gives a warning because it
uses a variable named file. I imagine there are places like this all
over in the stdlib, which should be renamed fp or something similar.

----------
components: Interpreter Core
files: file_warning.patch
keywords: patch
messages: 63814
nosy: benjamin.peterson
severity: normal
status: open
title: Use of builtin file should give Py3k warning
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file9710/file_warning.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2374>
__________________________________


More information about the New-bugs-announce mailing list