4 ms·
> 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
by ggregoire 6y ago
> 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'