f---ing typechecking

skip at pobox.com skip at pobox.com
Thu Feb 15 10:46:00 EST 2007


    Sergey> posix.stat_result is CLASS, not regular tuple.

I believe it morphed from being a tuple though.  I wasn't suggesting that
there is some other way to approximate records.  I was trying to demonstrate
the use of a tuple as a record.  It eventually became so compelling that a
new struct_time type was created.  It works both like a tuple as a class.

The notion of tuples as records in Python is not new:

    http://mail.python.org/pipermail/python-list/1999-December/thread.html

Search for "super tuples".

Skip



More information about the Python-list mailing list