Hacker News new | ask | show | jobs
by e12e 1286 days ago
I don't think python without heterogenous lists and dictionaries is really python?
1 comments

I can't think of a time I ever needed to do such a thing, and I've written many thousand lines of python. Python supports OOP, so classes will get you quite far in this regard.
Wouldn't that exclude (most) nested lists?
What do you mean by nested lists? A list of lists, that's a list with a single type.
I was thinking more a tree-like structure, with lists or values.