0
def prints(value, ..., seps='', ends='\n', files=sys.stdout):
    print(value, sep=seps, end=ends, file=files)

print = prints

Would this permently overwrite print or just overwrite it while my program is running?

4
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by shadwickman
0

Sorry I think it will overwrite on print when its its callers prameters be like its own.or else print will call.
Is it true?

0

Sorry I think it will overwrite on print when its its callers prameters be like its own.or else print will call.
Is it true?

I believe you're thinking of overloading a function, like in C++. Python doesn't have that capability.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.