ConfigParser & STRPTIME ????

scott cotton scott at chronis.pobox.com
Mon Jun 28 05:29:11 EDT 1999


On Mon, Jun 28, 1999 at 04:05:38AM +0000, Benjamin Schollnick wrote:
| Folks,
| 
| 	Sorry to repost this, but I haven't had any real answers in
| regards to these questions....
| 
| 	1) Can someone show me a example for STRPTIME?
| 		I'm following the language reference, and getting
| 		errors with STRPTIME.  I suspect that either the manual
| 		is in error, or that it doesn't work.


I thought I posted an example:

0628 05:28 bort:~/mailcrypt-3.5.3% python
Python 1.5.2 (#8, May 28 1999, 21:09:50)  [GCC 2.7.2.3] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum,
Amsterdam
>>> import time
>>> time.strptime("19990403", "%Y%m%d")
(1999, 4, 3, 0, 0, 0, 6, 1, 0)
>>>

| 
| 	2) Can you use CONFIGPARSER to write a *.INI file that
| 		you have made, or read into config parser, back
| 		out to disk? From reading Dejanews, I believe that
| 		it can't be?!?!?!?!?!? If so, why?  It seems silly to support
| 		read but not write.
| 
| 			- Benjamin

this one I can't help with, i prefer LParser for
configuration parsing :)

scott




More information about the Python-list mailing list