Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use anything immutable like a string, a number, a tuple of immutables, a frozendict, any dataclass with frozen=True, and so on.

No need to do the annoying if x is None.

 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: