Hacker News new | ask | show | jobs
by hobarrera 3786 days ago
That's because attribute names can't be called "$", so `sometuple.$` would be a syntax violation.
1 comments

I guess everyone is aware of that, thanks,

The parent comments were discussing why choosing dicts over namedtuples for db-originated columns, and the fact that field names are restricted on namedtuples but not on dicts is a very compelling point.

Making examples usind dicts and explaining why namedtuples have restrictions is completely missing the point.