Skip to content Skip to sidebar Skip to footer

How To Edit Cpython's Lib/importlib/_bootstrap.py?

I would like to play with CPython's Lib/importlib/_bootstrap.py file, but my edits in my current CPython installation on MacOS (installed with the Homebrew package manager) have no

Solution 1:

importlib._bootstrap is a frozen module. To update it, the importlib module should be recompiled:

$ cd /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Python/
$ make regen-importlib
$ make

Post a Comment for "How To Edit Cpython's Lib/importlib/_bootstrap.py?"