[issue2374] Use of builtin file should give Py3k warning
Guido van Rossum
report at bugs.python.org
Tue Mar 18 01:44:10 CET 2008
Guido van Rossum <guido at python.org> added the comment:
Let's not do this. This approach is not sufficiently backwards
compatible; it will break any code that uses isinstance(x, file). Even
though that's not forward compatible with 3.0, it works in 2.5 and
before, so it should not break in 2.6. Together with my previous remark
this means that we should just not mess with this.
(PS: I don't understand what you say about distutils.text_file -- from
your patch it looks like the only way it can issue this warning is if it
actually calls the file() builtin...)
----------
resolution: -> rejected
status: open -> closed
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2374>
__________________________________
More information about the Python-bugs-list
mailing list