Hacker News new | past | comments | ask | show | jobs | submit login

One approach would be to set values like "red = object()". I use that often to create guaranteed-unique sentinel values.



My approach was this:

class UniqueValue: pass




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: