Python 3 dataclasses in the browser

# Client side
from functools import (
    update_wrapper,
    wraps,
    total_ordering,
    cmp_to_key,
    cache, # python 3.9 but available on the client
    lru_cache,
    reduce,
    partial,
    partialmethod,
)

Currently missing:

  • singledispatch
  • cached_property (python 3.8)
  • singledispatchmethod (python 3.8)

(has been available since May 2021)

2 Likes