Y
Hacker News
new
|
ask
|
show
|
jobs
by
mangecoeur
1285 days ago
I have also been using python a long time and i honestly can’t remember a time i used mixed type list.
3 comments
querez
1285 days ago
In my code this comes up often, e.g. when I use tuples instead of namedtuple or a dataclass.
link
bastawhiz
1285 days ago
Tuples aren't lists though. Tuples are really just structs with indexes instead of names.
link
ris
1284 days ago
Never have to handle/forward function calls with arbitrary arguments? What do you think *args is?
link
mangecoeur
1284 days ago
a tuple
link
froggit
1284 days ago
I use mixed lists all the time to store shit, but I'm also a total python newb that really doesn't know better.
link