Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mangecoeur
3y ago
0 comments
Share
I have also been using python a long time and i honestly can’t remember a time i used mixed type list.
0 comments
default
newest
oldest
querez
3y ago
In my code this comes up often, e.g. when I use tuples instead of namedtuple or a dataclass.
bastawhiz
3y ago
Tuples aren't lists though. Tuples are really just structs with indexes instead of names.
ris
3y ago
Never have to handle/forward function calls with arbitrary arguments? What do you think *args is?
mangecoeur
OP
3y ago
a tuple
froggit
3y 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.
j
/
k
navigate · click thread line to collapse