[issue7162] 2to3 does not convert __builtins__.file

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker _

[issue7162] 2to3 does not convert __builtins__.file

2014-07-02 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue7162] 2to3 does not convert __builtins__.file

2014-07-02 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-b

[issue7162] 2to3 does not convert __builtins__.file

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.6, Python 2.7, Python 3.0 ___ Python tracker ___ ___ Pyt

[issue7162] 2to3 does not convert __builtins__.file

2010-03-07 Thread Joe Amenta
Joe Amenta added the comment: Yes, the idea was that it doesn't seem outlandish for someone to do: def file(something): do_stuff() You can use lib2to3.fixer_util.is_probably_builtin for this... modified the patch and attached. -- Added file: http://bugs.python.org/file16490/issue7

[issue7162] 2to3 does not convert __builtins__.file

2010-03-07 Thread Ryan Coyner
Ryan Coyner added the comment: I thought the whole point was that file[1] was removed in 3.0[2]? Or, are you saying that if somebody overloaded file with def file(...)? If that is the case would it be reasonable to check like this? >>> file in list(__builtins__.__dict__.values()) True >>> def

[issue7162] 2to3 does not convert __builtins__.file

2010-03-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Unfortunately this patch would also replace legitimate uses of a "file" function. -- assignee: -> benjamin.peterson nosy: +amaury.forgeotdarc, benjamin.peterson stage: -> patch review ___ Python tracker

[issue7162] 2to3 does not convert __builtins__.file

2010-02-27 Thread Ryan Coyner
Ryan Coyner added the comment: Patch attached. Unit test and documentation included. COMMITMSG: Adds a new fixer to lib2to3 which replaces the deprecated builtin "file" with "open". -- keywords: +patch nosy: +rcoyner Added file: http://bugs.python.org/file16392/issue7162.patch _

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
Changes by Joe Amenta : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
New submission from Joe Amenta : Step to reproduce: $ echo 'file("/some/file")' | python `which 2to3` - (replace python with whichever python executable version you wish to use, e.g. ~/python-trunk/python or /usr/local/bin/python3.2 ) Expected result: Anything referring to the fact that the "f