Timeline for Finding the source code for built-in Python functions?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 28, 2021 at 11:12 | comment | added | Stef |
Looking for the implementation of builtin pow in bltinmodule.c, I only find an unhelpful static PyObject * builtin_pow_impl(PyObject *module, PyObject *base, PyObject *exp, PyObject *mod) { return PyNumber_Power(base, exp, mod); }. Is there an easy way to find where the actual algorithm implementation is hidden?
|
|
| Dec 12, 2020 at 23:28 | comment | added | user3064538 |
dir is not implemented in C so it's not in that file.
|
|
| Jun 20, 2020 at 9:12 | history | edited | Community Bot |
Commonmark migration
|
|
| Feb 20, 2019 at 23:32 | history | edited | user1767754 | CC BY-SA 4.0 |
added 79 characters in body
|
| Feb 20, 2019 at 23:32 | comment | added | user1767754 |
A list is an object/type, not a builtin function. You can find the implementation details for that in listobject.c github.com/python/cpython/tree/master/Objects
|
|
| Nov 18, 2017 at 21:36 | history | answered | user1767754 | CC BY-SA 3.0 |