Python 3's `print()` function gained the `file` parameter, enabling straightforward redirection of output to any file-like object, such as a physical file or `sys.stderr`. This offers superior flexibility for logging and error reporting compared to Python 2's more specialized `print >> file_object` syntax.