Hacker News new | past | comments | ask | show | jobs | submit login

Future imports are not imports at all (the fact that they use the same syntax as imports is misleading IMO). They are tags that instruct the interpreter to turn on certain features only when interpreting the given file. They must appear before any statements in the file, and they take effect before interpretation of the file starts. You could argue that this constitutes an import side effect, but that's neither here nor there, and not helpful.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: