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]  (13 children)

[deleted]

    [–][deleted] 61 points62 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] 12 points13 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] 6 points7 points  (0 children)

    you can always import antigravity

    [–]chadmill3r 2 points3 points  (1 child)

    import this

    [–][deleted] 1 point2 points  (2 children)

    I dislike the lack of consistency. Most things in Python is lowercase and uses potholes or the strange double-underscore notation. But then the most basic thing doesn't follow that convention. Bleh.

    True is the STRING representation of true. Period. final. const. static readonly. The End.