from icecream import ic as print
Perhaps writing this way can be perfectly compatible with existing code
This wouldn't work cause print is a restricted keyword.
As a basic usage alternative this is feasible:
a = [1, 2, 3]
print(a) # [1, 2, 3]
from icecream import ic as print
print(a) # ic| a: [1, 2, 3]
I'm thinking and it looks like not a good idea to somehow replace existing built-in function as print.
@LogWell Why do you think it could be useful?
Sometimes I just need to check it briefly, which is very convenient. I can remove this line when it's not needed. Not all projects are run in a very strict manner.
@LogWell
Is there any issues with using from icecream import ic as print in current library version?