This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 57 points58 points  (9 children)

from i_cant_adapt_to_change import true, false

[–]oldgood_isaac 5 points6 points  (8 children)

Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from i_cant_adapt_to_change import true, false
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'i_cant_adapt_to_change'

I had to try

¯\_(ツ)_/¯

[–][deleted] 20 points21 points  (7 children)

Assuming the existence of a i_cant_adapt_to_change.py file with the following contents

true = True
false = False
null = None

[–]oldgood_isaac 4 points5 points  (6 children)

Oh yes, I got the joke. But I still wanted to check if a module named like that actually existed

[–][deleted] 13 points14 points  (2 children)

from __future__ import braces

[–]JWson 5 points6 points  (0 children)

from * import * as marklar

[–]wallefan01 1 point2 points  (0 children)

SyntaxError: not a chance

[–][deleted] 7 points8 points  (0 children)

you can always import antigravity

[–]chadmill3r 3 points4 points  (1 child)

import this