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

Closing too many states should be a TNException #1421

Merged
merged 2 commits into from
Sep 11, 2022
Merged

Conversation

mscuthbert
Copy link
Member

Previously this raised an IndexError whether or not raiseExceptions was True. Now does the best it can if raiseExceptions is False and raises a TinyNotationException if raiseExceptions is True

Also improved docs of Converter process and added more typing.

Remove weakref wrapping from a misunderstanding from before Py2.5 that circular references will not be cleaned up. We're moving away from handling weakref garbage collection and letting Py's C-language more efficient garbage collector clean them up. Tradeoff -- a little more temporary memory usage when parsing for faster parses.

Previously this raised an IndexError whether or not raiseExceptions was True.  Now does the best it can if raiseExceptions is False and raises a TinyNotationException if raiseExceptions is True

Also improved docs of Converter process and added more typing
@coveralls
Copy link

coveralls commented Sep 11, 2022

Coverage Status

Coverage decreased (-0.003%) to 93.074% when pulling b4b65b2 on tn_exception into 29b67ed on master.

@mscuthbert mscuthbert merged commit 656e2ba into master Sep 11, 2022
@mscuthbert mscuthbert deleted the tn_exception branch September 11, 2022 20:42
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.

2 participants