':Parameters:
- `destination`: either a file-like object (which is written
directly) or `None` (which implies `sys.stdout` if no
`destination_path` given).
- `destination_path`: a path to a file, which is opened and then
written.
- `autoclose`: close automatically after write (boolean); always
false if `sys.stdout` is the destination.'

def __init__(self, destination=None, destination_path=None, encoding=None, error_handler='strict', autoclose=1, handle_io_errors=1):

    Output.__init__(self, destination, destination_path, encoding, error_handler)
    self.opened = 1
    self.autoclose = autoclose
    self.handle_io_errors = handle_io_errors
    if (destination is None):
        if destination_path:
            self.opened = None
        else:
            self.destination = sys.stdout
            self.autoclose = None
    if (not destination_path):
        try:
            self.destination_path = self.destination.name
        except AttributeError:
            pass
