Typing system vs. Java

Courageous jkraska1 at san.rr.com
Sun Aug 5 12:36:30 EDT 2001


>I haven't seen many such requests.  Anyway, it's clearly trivial
>to subclass UserList, overriding append and __setitem__ to make
>sure the items being added satisfy some per-item test (be it
>a type-test or something more clever) -- is that what you mean?

Pretty much, yep.

BTW, the "requests" for uniform containers I was referring to weren't
necessarily for Python. :)

C//




More information about the Python-list mailing list