In PEP 8 -- Style Guide for Python Code
Explicit relative imports are an acceptable alternative to absolute imports
Implicit relative imports should never be used and have been removed in Python3.
What Is Python Implicit Relative Import?
Implicit import is a algorithm
Search up from current package directory until the ultimate package parent gets hit.
-- From https://www.python.org/dev/peps/pep-0328/#rationale-for-relative-imports
Can someone explain it in detail?
Removed In Python3?
python2 -c 'import csv; print(csv)'
<module 'csv' from '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/csv.pyc'>
$ touch csv.py
$ python2 -c 'import csv; print(csv)'
<module 'csv' from 'csv.pyc'>
# In python3 still search from current package
$ python3 -c 'import csv; print(csv)'
<module 'csv' from '/path_to/csv.py'>