[XML-SIG] iso8601 module: re-creating an original date

Fred L. Drake, Jr. fdrake@acm.org
Mon, 19 Mar 2001 14:15:26 -0500 (EST)


Andrew Kuchling writes:
 > One possible API: parse_tuple(string) which returns a 9-tuple like the
 > one from time.gmtime() or time.localtime(), except that fields not
 > provided are represented by None, not 0.  (This means you can't pass

  Con:  This maintains the existing "tuplized" excuse for a structure
-- pure evil, and a pain to work with!

 > the tuple to functions like time.mktime() without first converting
 > None to 0.)  An alternative interface would be to return a dictionary
 > of fields, or an object with attributes.

  I favor an object with attributes, and look forward to your updates
to the module.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations