Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Deprecate excepthook and completely remove _taichi_skip_traceback #3902

Merged
merged 3 commits into from
Dec 29, 2021
Merged

[Refactor] Deprecate excepthook and completely remove _taichi_skip_traceback #3902

merged 3 commits into from
Dec 29, 2021

Conversation

turbo0628
Copy link
Member

Related issue = #3775 #2489

Problem: with the introduction of pretty exception mechanism, the "excepthook" and "_taichi_skip_traceback" are no longer needed. Therefore I removed all occurrences and make respective changes to documents.

Briefing of changes:

  1. Remove all occurrences of "excepthook" and "_taichi_skip_traceback"
  2. Change descriptions of pretty traceback messages
  3. Rename "misc/demo_excepthook.py" to "misc/demo_traceback.py"

@CLAassistant
Copy link

CLAassistant commented Dec 29, 2021

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Dec 29, 2021

✔️ Deploy Preview for jovial-fermat-aa59dc ready!

🔨 Explore the source changes: db2e487

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/61cbd57588f38a00074e096a

😎 Browse the preview: https://deploy-preview-3902--jovial-fermat-aa59dc.netlify.app

@qiao-bo
Copy link
Collaborator

qiao-bo commented Dec 29, 2021

/format

Copy link
Contributor

@strongoier strongoier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Regarding the traceback messages, it is OK to give suggestions like this for now. Just want to mention that @lin-hitonami is working on more user-friendly messages (one step is #3873).

@strongoier strongoier merged commit 6810930 into taichi-dev:master Dec 29, 2021
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request Jan 5, 2022
…aceback (taichi-dev#3902)

* Deprecate excepthook and cleanup all _taichi_skip_traceback.

* Auto Format

Co-authored-by: Taichi Gardener <taichigardener@gmail.com>
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.

None yet

5 participants