[Tutor] tuple & object's attributes (changed)

bob gailer bgailer at gmail.com
Sat Jan 3 00:11:42 CET 2009


Kent Johnson wrote:
> [snip]
> To actually *constrain* a collection to be homogeneous seems extremely
> un-pythonic. In actual fact all containers can hold whatever you want
> to put in them without restriction (except hashability requirements
> for sets and dict keys).
>   

Well, the array module offers only an homogeneous (numeric only, all 
elements the same type) collection.

-- 
Bob Gailer
Chapel Hill NC 
919-636-4239



More information about the Tutor mailing list