Python For Data Analysis: A Step By Step Guide To Build Intelligent System Machine Learning, Scikit-Learn, Keras And Tensorflow by Miller Leon

Python For Data Analysis: A Step By Step Guide To Build Intelligent System Machine Learning, Scikit-Learn, Keras And Tensorflow by Miller Leon

Author:Miller, Leon [Miller, Leon]
Language: eng
Format: epub
Published: 2020-01-15T16:00:00+00:00


6.1.2 Search Modules Method

If a module named spam is available, the interpreter must be alert for a built-in module with the same name. If it is not fоund, it lооks for a file namеd spam.py in the directory list, this changes sys.path.

Sys .path is initialized from the following locations:

• The directory contains the input script (or the current list if no file).

• PYTHONPATH (directory name and group syntax to shell change path).

• The background depends on the location.

Note The file system that supports the sample connection, the folder containing the input script. In other words, the binder includes that is not added to the module's search path.

After initialization, Python programs can create sys.path. The directory containing a running script is placed at the beginning of the search path in front of the standard library path. This means that scripts in a list are loaded instead of similar modules to the Library. This is a mistake if it has not been replaced. See the Standard module section for more information.

6.1.3 "compiled" in Python files

Above is the loading of the module, Python cache considers the version of each module in the catalog __pycache__ called module.version.pyc, which first recognizes a version of the assumed file format; usually, it has Python version numbers. For example, the texts of CPython 3.3 spam.py considered version would be packed as __pycache __ / spam.cpython-33.pyc. This approach allows you to write modules from different versions in, and various versions of Python compiled.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.