Collections of non-arbitrary objects ?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jun 23 01:50:09 EDT 2007


En Fri, 22 Jun 2007 21:45:02 -0300, walterbyrd <walterbyrd at iname.com>  
escribió:

> Maybe it's something that doesn't "need" to be done, but it seems to
> me that would give you a certain level of built-in integrity - you
> could be sure about what's in the structure. I would not expect that
> all of python would be that rigid, but I thought it might be
> worthwhile if there were one such structure.

Sure. You can implement it yourself, if you want; it's not so hard even  
for a beginner. It's just not needed enough, or required enough, to become  
a builtin type.
Look for some recent posts about a RestrictedList.

-- 
Gabriel Genellina




More information about the Python-list mailing list