Super Tuples

Aahz Maruch aahz at netcom.com
Wed Dec 29 14:09:40 EST 1999


In article <386a43e3.48679477 at news.isomedia.com>,
Eugene Goodrich <bitbucket at isomedia.com> wrote:
>
>Begging your pardon, but is it possible to make a class that looks
>tuplish to users trying to access it by index but also exposes its
>values via .properties?  What incompatibilities with functions
>expecting tuples would this code provide: (sorry for any bad wrapping)

That's probably a good idea, but you skipped the __getslice__ method.
(As mentioned in another post in this thread.)
--
                      --- Aahz (@netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Eighth Virtual Anniversary -- 2 days and counting!



More information about the Python-list mailing list