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

The "properties of the value it returns" are, by design, implementation-dependent. You're only supposed to use the id function if you need to know something about what's going on under the hood. The id function is working exactly as intended: it's exposing aspects of the implementation, if for some reason you need to know that stuff.

It would not be a positive change to sacrifice Python performance in order to make the output of id() more intuitive. I've spent many hundreds of hours coding Python and I don't believe I ever used that function or saw someone else use it.



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

Search: