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
Make plastex work with Python 3.7 #109
Comments
Thanks for the report. I'm not sure returning on StopIteration is all we need to do. Currently when we hit StopIteration, the end_input method is called which gets the most recent input source from the stack. I'm going to refer this to @kesmit13 so he can have a look. |
Is there any chance this will be fixed in the near future, or should one try to work around it? FWIW, it seems to me that the fixes in gerby-project#58 might be fine -- the calls to And regardless of whether they are sufficient, they are clearly harmless -- they just make sure that And given that they are harmless and at least resolve some issues, perhaps it would make sense to merge those changes for now? |
Any update on this issue? |
Fixed in #118. |
Issue
PlasTeX is currently incompatible with python 3.7 due to changes in exception handling inside generators.
Here is the traceback:
Description of Fix
I managed to bypass this issue by following the fix described in the link above:
A hypothetical parser
would need to be rewritten as
Actual Fix
This issue is bypassed once I apply the fix described above to the while loops in the following:
__iter__
in the fileTeX.py
.iterchars
and__iter__
in the fileTokenizer.py
.I am not sure if I should raise this as a PR because this seems to be a hackish workaround.
The text was updated successfully, but these errors were encountered: