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

Upcoming incompatibility with Python3.12 and web/template.py #345

Open
bkoblenz opened this issue Sep 12, 2024 · 1 comment
Open

Upcoming incompatibility with Python3.12 and web/template.py #345

bkoblenz opened this issue Sep 12, 2024 · 1 comment

Comments

@bkoblenz
Copy link
Contributor

I noticed that tokenize in python 3.12 has made an incompatible change (by intent) in how it parses python. In particular, rather than returning an error token in some cases it will raise an exception.

I suspect none of the webpages will successfully render with that new tokenize.

I was able to work around the issue by catching and ignoring the exception but I was hoping someone might find a more elegant way to deal with this.

While I havent done so, I am quite confident any 3.12 version of tokenize being used with sip's webpy software will fail.

Just hoping to get this out there early enough so someone else does not rediscover this.

-brian

@Dan-in-CA
Copy link
Owner

If the issue is with web.py it should be addressed on the web.py repo:
https://github.com/webpy/webpy

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

No branches or pull requests

2 participants