title: Pass all arguments of a function to another function
body: <p>I want to have a class that I can create subclasses of that has a print function that only prints on a particular condition.</p>
  
  <p>Here's basically what I'm trying to do:</p>
  
  <pre><code>class ClassWithPrintFunctionAndReallyBadName:
      ...
      def print(self, *args):
          if self.condition:
              print(*args)
  </code></pre>
  
  <p>This works already except for the fact that there are arguments that have to be explicitly stated with the default <code>print</code> function, such as <code>end</code> (example: <code>print('Hello, world!', end='')</code>). How can I make my new class's <code>print</code> function accept arguments such as <code>end=''</code> and pass them to the default <code>print</code>?</p>