[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Christopher Yeh
Christopher Yeh added the comment: I understand the two uses of the phrase "built-in": 1) to refer to things included with the Python interpreter (e.g. modules in sys.builtin_module_names, and built-in functions like len() and ord()) 2) to refer to things included with Python that are written

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the word "built-in" is being used in two different ways here. It is used in a strict sense for sys.builtin_module_names and in a general sense in the datamodel docs. The former only includes modules compiled into the core exe or dll file. The lat

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Christopher Yeh
Christopher Yeh added the comment: Here's the output from my terminal comparing the `math` standard library module (not always built-in) against the `sys` standard library module (always built-in). On Windows 10 x64, WSL 1, Ubuntu 18.04.02 LTS, Python 3.7.7 installed via conda: math is not

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: What happens when you type, "import math" and "print(type(math))"? -- nosy: +rhettinger ___ Python tracker ___ ___

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Christopher Yeh
New submission from Christopher Yeh : 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