[ create a new paste ] login | about

Link: http://codepad.org/iafLYaaK    [ raw code | output | fork ]

aaronla - Python, pasted on May 31:
1
2
3
4
5
def evalit(s):
  print "%r => %r" %(s, eval(s, globals(), globals()))

evalit("0 == False")
evalit("type(0) == type(False)")


Output:
1
2
'0 == False' => True
'type(0) == type(False)' => False


Create a new paste based on this one


Comments: