Skip to content

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

@bkoblenz

Description

@bkoblenz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions