A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-December/123087.html below:

[Python-Dev] where is the python "import" implemented

[Python-Dev] where is the python "import" implemented [Python-Dev] where is the python "import" implementedmartin at v.loewis.de martin at v.loewis.de
Tue Dec 11 10:08:29 CET 2012
>         in this situation, I can not find the source code how python
> implement it. I test a wrong format pyc, and got a error "ImportError: bad
> magic number",and I search "bad magic number" in the source code,  I
> find it is in importlib/_bootstrap.py(line 815),but when I modify this
> error info(eg: test bad magic) and run again, nothing is changed. It seems
> that the file is not the correct position.

This is the right position. When you change _bootstrap.py, you need to
run "make" again, to freeze the modified _bootstrap.py.

Regards,
Martin


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4