Pythonic list/tuple/dict layout?
steve at REMOVE-THIS-cybersource.com.au
Sun Jan 25 13:10:26 CET 2009
On Sun, 25 Jan 2009 17:18:28 +0900, Akira Kitada wrote:
> There is more than one way to write a list/tuple/dict in Python, and
> actually different styles are used in standard library. As a hobgoblin
> of little minds, I rather like to know which style is considered
> in the community.
> I collected common layout from existing code and pasted them below. My
> vote would go to d1. How about yours?
All of them.
BTW, there's no need to use such large examples. Three items per dict
would be sufficient to illustrate the styles, using ten items doesn't add
anything useful to the discussion.
More information about the Python-list