A small inconsistency in syntax?

Brian Quinlan BrianQ at ActiveState.com
Fri Oct 26 17:40:59 EDT 2001


I could want to write:
a = ['x value','y value','z value'] = x

Here the intermediate list is doing 3 things for me:

1. it's providing documentation
2. it's forcing the sequence type to be of length 3
3. it's making the type assigned to 'a' a list

-- 
Brian Quinlan
BrianQ at ActiveState.com





More information about the Python-list mailing list