github CheetahTemplate3/cheetah3 3.4.0b4

pre-release10 hours ago

Bug fixes:

  • Fixed ImportHooks: it must raise ModuleNotFoundError
    instead of ImportError.

  • Fixed absolute import in ImportHooks under Python 3.

  • Fixed Template.webInput: Use urllib.parse.parse_qs
    instead of cgi.FieldStorage; Python 3.13 dropped cgi.

  • Fixed _namemapper.c: Silent an inadvertent TypeError exception
    in PyMapping_HasKeyString under Python 3.13+
    caused by _namemapper looking up a key in a non-dictionary.

  • Fixed _namemapper.c: Silence IndexError when testing
    name[attr]. Some objects like re.MatchObject implement both
    attribute access and index access. This confuses NameMapper because
    it expects name[attr] to raise TypeError for objects that don't
    implement mapping protocol.

  • Fixed mapping test in NameMapper.py:
    Python 3.13 brough a new mapping type FrameLocalsProxy.

  • Fixed another RecursionError in ImportHooks under PyPy3.

Tests:

  • tox: Run tests under Python 3.13.

CI:

  • CI(GHActions): Switch to setup-miniconda.

  • CI(GHActions): Run tests under Python 3.13.

Don't miss a new cheetah3 release

NewReleases is sending notifications on new releases.