Elektrine lite

← Feed

@whitequark@social.treehouse.systems

2026-08-23 20:19 UTC

oh hell yeah https://peps.python.org/pep-0843/

Replies (4)

  • @whitequark@social.treehouse.systems cool

    Open ##4530104

  • @xgranade@wandering.shop 2026-08-23 20:22

    @whitequark@social.treehouse.systems It's so good! I cannot wait, good grief.

    Open ##4602468

  • @qim@mas.to 2026-08-23 20:55

    @whitequark@social.treehouse.systems i wish Lua had this

    Open ##4602470

  • @whitequark@social.treehouse.systems Progress! But the problem of like requests.HTTPError often showing up wrong as its less brief alias requests.exceptions.HTTPError will remain? assert requests.exceptions.HTTPError is requests.HTTPError import requests r = requests.get("https://example.com/dev/null/child") try: r.raise_for_status() except Exception as exc: texts = traceback.format_exception(exc, limit=0) print(texts[0].rstrip()) What prints is > requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://example.com/dev/null/child Sigh. We're supposed to teach everyone to misread that concrete result as if it were > requests.HTTPError: 404 ... Sigh.

    Open ##4602471