Does everyone use #Python’s object()
for unique tokens? Like:
no_match = object()val = some_dict.get('key', no_match)if val is not no_match: do_something()
I don’t know what else object()
would be used for (and why they’d keep it).
@meejah yeah, I mean specifically its use as a way to mint these sort-of do-nothing objects, not just its use as a type