I want to create a Python function that can inspect its own input, rather than the output of its input. For example, a function raw_str that returns its input exactly, as a string:
>>> raw_str(2+2)
'2+2'
rather than:
>>> str(2+2)
'4'
Is there any way to do this?
raw_str('2+2')acceptable? Otherwise, @JBernardo is right.