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

> I still can't comprehend how people get themselves into a situation where using the wrong type is a problem

    def get_user(user):
        userId = user.id

    def main():
        get_user(12)

    AttributeError: 'int' object has no attribute 'id'


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: