New submission from Christopher Yeh <chrisye...@gmail.com>:
The documentation says the following: > A built-in function object is a wrapper around a C function. Examples of > built-in functions are `len` and `math.sin` (`math` is a standard built-in > module). However, `math` is not always a built-in module, as can be seen in on my own Python installation (Windows 10, WSL 1, Python 3.7.7 installed via conda). >>> import sys >>> sys.builtin_module_names ('_abc', '_ast', '_codecs', '_collections', '_functools', '_imp', '_io', '_locale', '_operator', '_signal', '_sre', '_stat', '_string', '_symtable', '_thread', '_tracemalloc', '_warnings', '_weakref', 'atexit', 'builtins', 'errno', 'faulthandler', 'gc', 'itertools', 'marshal', 'posix', 'pwd', 'sys', 'time', 'xxsubtype', 'zipimport') Therefore, I have submitted a pull request to remove the statement "(`math` is a standard built-in module)" from the documentation. ---------- assignee: docs@python components: Documentation messages: 371473 nosy: chrisyeh, docs@python priority: normal pull_requests: 20055 severity: normal status: open title: Error in Python Datamodel Documentation type: enhancement versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40970> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com