[issue41393] Fix FAQ example to use __import__('functools').reduce
Eric V. Smith
report at bugs.python.org
Sat Jul 25 09:29:30 EDT 2020
Eric V. Smith <eric at trueblade.com> added the comment:
I agree that the example is okay as-is.
Plus, I can't see us using __import__ in examples. "import" is the preferred way to load modules.
Although now that I think about it, maybe __import__ would fit in with the subject "Is it possible to write obfuscated one-liners in Python?"!
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41393>
_______________________________________
More information about the Python-bugs-list
mailing list