diff --git a/python.html.markdown b/python.html.markdown index 2e7fd8be..12be4be1 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -657,6 +657,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 diff --git a/python3.html.markdown b/python3.html.markdown index d88ccec1..ea29fdba 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -716,6 +716,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