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

Normally, yes. But if you define __slots__ on the class, it's the same overhead as a namedtuple (no __dict__ per instance).


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

Search: