2014/1/20 Guido van Rossum <[email protected]>:
> The except is to use the stdlib one if present.
When/how the stdlib version is used? Extract of the current code:
---
# The selectors module is in the stdlib in Python 3.4 but not in 3.3.
# Do this first, so the other submodules can use "from . import selectors".
# Prefer asyncio/selectors.py over the stdlib one, as ours may be newer.
try:
from . import selectors
except ImportError:
import selectors # Will also be exported.
---
When "from . import selectors" raises an ImportError?
Victor