I want to have a class that I can create subclasses of that has a print function that only prints on a particular condition.
Here\'s basically what I\'m trying to do
Just duplicate the named arguments for the method signature.
def print(self, *args, end='\n', sep=' ', flush=False, file=None): if self.condition: print(*args, end=end, sep=sep, flush=flush, file=file)