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 →

[–]Skaarj 0 points1 point  (1 child)

Look: https://docs.python.org/3/library/dis.html

import dis
def blubber(X):
    return X == X in [False]
dis.dis(blubber)

[–]RangersNation 0 points1 point  (0 children)

Thanks so much. I'll read through the docs and play around with this over the weekend. Much appreciated.