As we know in Python 3 print() is a function, is it possible to create a decorated version of it wrapped under json.dumps(indent=4)
print()
json.dumps(indent=4)
for ex.
No, it's not possible since print is a builtin function and it's not even a builtin C-level class. This answer provides a way to subclass a builtin object like a str and apply a decorator to one of it's methods.
print
str