The database driver I'm using, returns the data of a record in the form of tuple example ('João', 32, False)
.
I'm thinking of a pythonic way of passing this data to the constructor of a Person class, to create an object with the data contained in the tuple.
I had seen somewhere something about being able to pass a tuple as a parameter to a function and it would recognize the values contained in the tuple as being the value of each parameter that the function expects.
I'm not sure, but I think I saw something like that when I started studying in python.