summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaKnOb <daknob.mac@gmail.com>2015-10-09 13:43:57 +0300
committerDaKnOb <daknob.mac@gmail.com>2015-10-09 13:43:57 +0300
commit879337f9be2ef3c6ea2b01d34d2a21ad325c6cc4 (patch)
tree2a54b26f69fc4019b41e4b4571929478d7f21c12
parent13807790e46d4b75b90d6da17e6c28f4ed9e5a49 (diff)
Add Python Order Of Module Import for Python 3
-rw-r--r--python3.html.markdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index b3acb122..f21604e4 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -591,6 +591,11 @@ math.sqrt(16) == m.sqrt(16) # => 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