Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

time_struct

1 view
Skip to first unread message

moerchendiser2k3

unread,
Mar 7, 2010, 8:50:59 AM3/7/10
to
Hi,

can anyone tell me how to return a time_struct from the timemodule in
my own C-Module?
Is that possible? I can just find one function in timefuncs.h, but it
doesnt return any PyObject.

Thanks in advance.

moerchendiser2k3

moerchendiser2k3

unread,
Mar 7, 2010, 6:29:42 PM3/7/10
to
any ideas?

Gabriel Genellina

unread,
Mar 16, 2010, 2:46:05 AM3/16/10
to pytho...@python.org
En Sun, 07 Mar 2010 10:50:59 -0300, moerchendiser2k3
<googler.1...@spamgourmet.com> escribió:

> can anyone tell me how to return a time_struct from the timemodule in
> my own C-Module?
> Is that possible? I can just find one function in timefuncs.h, but it
> doesnt return any PyObject.

The type is available as the struct_time attribute in the time module; you
create an instance by calling it with a 9-items sequence.

--
Gabriel Genellina

0 new messages