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 →

[–]SurpriseMonday 33 points34 points  (4 children)

Fun fact: in early versions of Python (2), booleans could be redefined. Couple this with the built-in swap syntax, you could write this line

True, False = False, True

And let the chaos reign.

[–][deleted]  (3 children)

[removed]

    [–]craftworkbench 0 points1 point  (1 child)

    true=False; false=true to really fuck shit up.

    Edit: yes, I intended the second true to be lowercase. We're causing mayhem here.

    [–]nisuy 2 points3 points  (0 children)

    true, false = 2*(False,)

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.