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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to