Comment

Comment by notdonspaulding

The sentinel value you've used here is the right solution. It keeps the keyword arguments explicit and gives None its value back. However, it doesn't deserve a module global-to-python to live in. The cases where you use this pattern are broader than just "NotSet".

Good pattern, and it needs to be more widely-known, but it doesn't need to occupy the space of a module on PyPI. ;-)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton