Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mangecoeur
on Dec 8, 2022
|
parent
|
context
|
favorite
| on:
Codon: A high-performance Python-like compiler usi...
I have also been using python a long time and i honestly can’t remember a time i used mixed type list.
querez
on Dec 8, 2022
|
next
[–]
In my code this comes up often, e.g. when I use tuples instead of namedtuple or a dataclass.
bastawhiz
on Dec 8, 2022
|
parent
|
next
[–]
Tuples aren't lists though. Tuples are really just structs with indexes instead of names.
ris
on Dec 9, 2022
|
prev
|
next
[–]
Never have to handle/forward function calls with arbitrary arguments? What do you think *args is?
mangecoeur
on Dec 9, 2022
|
parent
|
next
[–]
a tuple
froggit
on Dec 9, 2022
|
prev
[–]
I use mixed lists all the time to store shit, but I'm also a total python newb that really doesn't know better.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: