"shaboo" wrote:

> It does say Python 2.4.2
> ~~~~~~~~~~~~~~~~~~~~~~~~
> Python 2.4.2 (#2, Jan 30 2006, 20:02:09) [C] on hp-ux11
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> ~~~~~~~~~~~~~~~~~~~~~~~~
>
> I did look at the sys.path but the issue is that I dont see a module
> name datetime anywhere. Only datetime thing that is there is in include
> directory and it is datetime.h, which I think is for C interface. I
> have a python installed on my Windows desktop and it is working fine
> there. Where is the datetime module stored? Does any body know?

on windows, it's linked to the interpreter.

>>> import datetime
>>> datetime
<module 'datetime' (built-in)>

>>> import sys
>>> "datetime" in sys.builtin_module_names
True

on other platforms, it may be linked to the interpreter or placed in
a shared library:

>>> import datetime
>>> datetime
<module 'datetime' from '/usr/local/lib/python2.4/lib-dynload/datetime.so'>

</F>



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to