python> link> from __future__ import absolute_import

I'm learning python code called mnist.py, which is related to Deep Learning called TensorFlow.

https://www.tensorflow.org/versions/master/tutorials/mnist/tf/index.html#tensorflow-mechanics-101 About the following description in that mnist.py

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

Sarinja's programming diary http://salinger.github.io/python/20140211-future-module/ of See absolute_import section.

In Python 3, absolute imports take precedence over relative imports. If a module with the same name as the standard module exists in the current directory, the module in the current directory has priority in Python 2 series, so using this eliminates the possibility of accidentally overwriting the standard module.

Recommended Posts

python> link> from __future__ import absolute_import
Python from or import
python> link> from __future__ import print_function> Make Python 3.X print () available in Python 2.X
About Python, from and import, as
Python module import
Import python script
sql from python
MeCab from Python
Summarize Python import
Import Excel file from Python (register to DB)
Use thingsspeak from python
python> link> range () / xrange ()
Touch MySQL from Python 3
[Note] future sentence ~ Python ~
Use fluentd from python
Access bitcoind from python
Changes from Python 3.0 to Python 3.5
Changes from Python 2 to Python 3.0
python original module import
Use MySQL from Python
Run python from excel
Install python from source
Execute command from Python
Operate neutron from Python!
Use MySQL from Python
Import classes in jar files directly from Python scripts
Operate LXC from Python
Manipulate riak from python
Force Python from Fortran
Use BigQuery from python.
Import tsv with Python
Execute command from python
python> Link> PyUserInput package |
[Python] Read From Stdin
Use mecab-ipadic-neologd from python
Import error resolution record when touching Python code from VSCode
Different from the import type of python. from A import B meaning
python> from six.moves import xrange> Six: Python 2 and 3 compatibility library> python2: xrange () / python3: range ()
Flatten using Python yield from
Call CPLEX from Python (DO cplex)
Deep Python learned from DEAP
Post from Python to Slack
How Python module import works
Grammar features added from Python3.6
Cheating from PHP to Python
Dynamically import scripts in Python
Import vtk with brew python
Make MeCab available from Python3
Information obtained from tweet_id (Python)
OCR from PDF in Python
Run illustrator script from python
Use MySQL from Anaconda (python)
Anaconda updated from 4.2.0 to 4.3.0 (python3.5 updated to python3.6)
Study from Python Hour4: Object-oriented ②
Query Athena from Lambda Python
Access Oracle DB from Python
Study from Python Hour3: Functions
Start / stop GCE from python
from sklearn.datasets import fetch_mldata-> fetch_openml
Stop Omxplayer from Python code
Switch from python2.7 to python3.6 (centos7)