Assuming we have a method returns_true() which just returns True. Is it possible to distinguish, from inside a foo() method with a single argument, if returns_true() was an argument or a True Literal? (purely motivated by curiosity, not as a solution to any particular problem)
def foo(obj):
pass # ?
def returns_true():
return True
foo(True)
foo(returns_true())