Newbie: Datetime, "Prog. in Win32", and how Python thinks

Max Yaffe invalid at notaxs.com
Mon Sep 5 12:42:39 EDT 2005


Dear Group,

First of all, thanks for all the postings about Datetime.  They've
helped alot.

I'm a newbie to Python (albeit very experienced in programming C & OO)
and trying to use "Programming in Win32"  by Hammond  & Robinson [H&R]
to learn it.  This may be a mistake since I think it refers to Python
1.5.2 while I'm trying to use Python 2.4.x.  Anyway...

1) H&R import a module "dates' which has been dropped.  They use
sec2asc which is also m.i.a.  I assume that the code should be adapted
to use module datetime.  Is that correct?

2) Is there any list of dead modules & names from previous revs?  Is
there any list of currently recommended modules?

3) I was able to import datetime & get a dir(datetime) to work.
Great.  But where is the actual code to datetime?  I can't find a
module named datetime.py in the library.  I grepped for datetime in
the library & found plenty of references to it but no module
definition.  Where is it defined?

4) How does the python interpreter resolve the statement "import
datatime"?

Thanks,
Max


Code don't lie.   Manuals Lie.   I'm highly suspicious of browsers.




More information about the Python-list mailing list