mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 06:18:30 +03:00
Add note about Python Module Order of Import
This commit is contained in:
parent
dd2d3a28d9
commit
13807790e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user