← Back to DAGDA | Support | Source: https://mail.python.org/pipermail/python-porting/2019-October/000564.html

[Python-porting] obsolete Python 2 builtin

Lennart Regebro regebro at gmail.com
Tue Oct 1 17:24:47 EDT 2019


On Tue, Oct 1, 2019 at 8:42 PM Wayne Cass via Python-porting
<python-porting at python.org> wrote:
>
> Hi
>
> I understood, that by using:
> from future.builtins.disabled import *
>
> I would get NameError: obsolete Python 2 builtin apply is disabled, for modules, which are not compatible with Python3.X

Only if you actually try to use any of the disabled builtins.
And why would you want that? It's easier to just not use the builtin
in question.

> ModuleNotFoundError: No module named 'future'

It looks like the future module isn't installed with the Python
installation you are using.


More information about the Python-porting mailing list