Hacker News new | ask | show | jobs
by dechols 4841 days ago
Which is more Pythonic?

list() or []

dict() or {}

set() or ????

I would argue that the left is more pythonic and expressive.

1 comments

Don't forget tuple() and ().

I don't think any are more pythonic. They are all valid python.