In situations where you want to import a nested module into your namespace, I've always written it like this:
from concurrent import futures
However, I recently realized that this can be expressed using the "as" syntax as well. See the following:
import concurrent.futures as futures
Which has the subjective advantage of looking more similar to other imports:
import sys
import os
import concurrent.futures as futures
... with the disadvantage of added verbosity.
Is there a functional difference between the two, or is one officially preferred in a PEP or otherwise?