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

> This is really an issue with Python in general (specifically, mutable types).

Unit-aware values as a type where assignment as mutation is an odd choice though (normal mutable types do not exhibit this behavior, it’s a whole separate behavior which has to be deliberately implemented.) It may make sense in the expected use case (and as you note reflects the behavior of the underlying type), but more generally it's not what someone wanting unit-aware values would probably expect.




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

Search: