[issue23893] Forward-port future_builtins

2015-04-24 Thread Brett Cannon
Brett Cannon added the comment: I've decided that having the module exist in Python 2.7 and 3.5 but not 3.0 - 3.4 is just asking for trouble. -- resolution: -> rejected status: open -> closed ___ Python tracker _

[issue23893] Forward-port future_builtins

2015-04-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Already exists on PyPI: https://pypi.python.org/pypi/future/ -- nosy: +pitrou ___ Python tracker ___ ___

[issue23893] Forward-port future_builtins

2015-04-09 Thread Eric V. Smith
Eric V. Smith added the comment: I think Serhiy is saying that you don't need to implement future_builtins in 3.x, if your 2.7 and 3.x compatible code catches the ImportError. -- ___ Python tracker ___

[issue23893] Forward-port future_builtins

2015-04-09 Thread Brett Cannon
Brett Cannon added the comment: There's no need for the ImportError catch. If a builtin is missing then there is something seriously wrong and it shouldn't be made silent. -- ___ Python tracker ___

[issue23893] Forward-port future_builtins

2015-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: try: from future_builtins import ascii, filter, hex, map, oct, zip except ImportError: pass -- nosy: +serhiy.storchaka ___ Python tracker

[issue23893] Forward-port future_builtins

2015-04-08 Thread Brett Cannon
Brett Cannon added the comment: It could go on PyPI if I make sure it doesn't shadow the module in Python 3.5 or 2.6/2.7. -- ___ Python tracker ___ _

[issue23893] Forward-port future_builtins

2015-04-08 Thread Brett Cannon
Brett Cannon added the comment: I now have a patch that contains everything, including docs. -- keywords: +patch Added file: http://bugs.python.org/file38871/future_builtins.diff ___ Python tracker

[issue23893] Forward-port future_builtins

2015-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: Looks good to me. I realize it's trivial, but is it worth putting this on PyPI for older 3.x's? -- ___ Python tracker ___ __

[issue23893] Forward-port future_builtins

2015-04-08 Thread Brett Cannon
Brett Cannon added the comment: Since the module is literally `from builtins import ascii, filter, hex, map, oct, zip`, I have attached the test file (which is also ridiculously simple). -- nosy: +eric.smith stage: test needed -> patch review Added file: http://bugs.python.org/file38870

[issue23893] Forward-port future_builtins

2015-04-08 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23893] Forward-port future_builtins

2015-04-08 Thread Brett Cannon
New submission from Brett Cannon: future_builtins exists in Python 2.7, but not Python 3 which is annoying for code that wants to rely on it in Python 2.7 but not 2to3 (who is the primary user of the module for rewrite rules). -- components: Library (Lib) messages: 240287 nosy: brett.c