I want to create a Python function that can check for its own input, and not the output of its input. For example, the raw_str function, which accurately returns its input as a string:
>>> raw_str(2+2) '2+2'
but not:
>>> str(2+2) '4'
Is there any way to do this?
source share