summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorDaKnOb <daknob.mac@gmail.com>2015-10-02 16:42:57 +0300
committerDaKnOb <daknob.mac@gmail.com>2015-10-02 16:49:51 +0300
commit13807790e46d4b75b90d6da17e6c28f4ed9e5a49 (patch)
treec7e84e6336990f2cee42b77fca2fb77926114324 /python.html.markdown
parentdd2d3a28d910f4e26ef1256a335d62be5c3f4650 (diff)
Add note about Python Module Order of Import
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown6
1 files changed, 6 insertions, 0 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 352f7349..e306dabd 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -569,6 +569,12 @@ math.sqrt == m.sqrt == sqrt # => True
import math
dir(math)
+# If you have a Python script named math.py in the same
+# folder as your current script, the file math.py will
+# be loaded instead of the built-in Python module.
+# This happens because the local folder has priority
+# over Python's built-in libraries.
+
####################################################
## 7. Advanced