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

The OP didn't say it was the same. It said they were similar. And they certainly are.

Although, there may be performance differences between `namedtuple` and `__slots__`. Particularly access time. This SO post elaborates.[1]

[1] - http://stackoverflow.com/questions/2646157/what-is-the-faste...



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: