Skip to content

shared-bindings/traceback/__init__.c: check args more carefully; enhnce doc - #11209

Open
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:traceback-args
Open

shared-bindings/traceback/__init__.c: check args more carefully; enhnce doc#11209
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:traceback-args

Conversation

@dhalbert

Copy link
Copy Markdown
Collaborator

Checks the args to make sure both value and tb are passed as args, or neither. Explains this in the documentation. The type signature of the functions can't really be expressed completely, since it's conditional on what's supplied, but I've tried to improve it slightly.

Adds tests to traceback_test.py to verify the arg checks.

@dhalbert
dhalbert requested a review from tannewt August 18, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs for traceback module claim wrong defaults for tb parameter

1 participant