Skip to content

Add documentation for new colorize keyword argument in traceback documentation #142896

Description

@mccullerlp

Documentation of Traceback module colorize features

The new colorized tracebacks are awesome. When users manually create tracebacks using the traceback module, they will not get colorized output by default.

This is because the colorize=True argument needs to be passed to the traceback.print_exception function.

This argument isn't in the documentation. I found it by reading the diffs on the traceback colorization PR.

#112730

Activity

  1. pablogsal commented on Dec 17, 2025

    @pablogsal
    Member

    Unfortunately the reason the code is structured as it is is to keep that argument private to the stdlib. The colorization story is still ongoing so we are not ready to open this for public consumption in case we need to change it in the future. Thanks for your understanding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions