Skip to content

[BACKWARDS INCOMPATIBLE] Use exception instances instead of exc_info tuples #82

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

Merged
merged 10 commits into from
Nov 24, 2019

Conversation

radix
Copy link
Contributor

@radix radix commented Nov 23, 2019

Fixes #24 (Passing around exc_info tuples sucks)

Ripping off the bandaid:

  • this PR makes Effect only support Python 3
  • this PR changes the API of Effect in a completely backwards-incompatible way

Everywhere where we used to deal with exc_info tuples, we now use Exception instances. This works in Python3 because Exception instances carry around their tracebacks.

@radix
Copy link
Contributor Author

radix commented Nov 23, 2019

After merging this, I will release Effect 1.0.

@radix radix merged commit 6b71487 into master Nov 24, 2019
@radix radix deleted the py3-exceptions branch November 24, 2019 00:58
@rbtcollins
Copy link
Contributor

<3

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.

Passing around exc_info tuples sucks
2 participants