Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
EdSchouten
on Dec 24, 2021
|
parent
|
context
|
favorite
| on:
Attrs – the Python library everyone needs (2016)
my_point3d = (1.0, 2.5, 7.2)
Voila!
Fatnino
on Dec 24, 2021
[–]
This is explicitly called out in the article.
What does your code do when I try my_point3d.x ?
zem
on Dec 24, 2021
|
parent
[–]
you can do that with namedtuples too; the problem is that tuples are immutable, so you cannot say e.g. `my_point3d.x = 10`
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Voila!