Re: [Cython] To Add datetime.pxd to cython.cpython

2013-03-03 Thread Zaur Shibzukhov
2013/3/3 Zaur Shibzukhov : > 2013/3/3 Zaur Shibzukhov : >> 2013/3/3 Zaur Shibzukhov : >>> 2013/3/2 Stefan Behnel : Hi, the last pull request looks good to me now. https://github.com/cython/cython/pull/189 Any more comments on it? >>> >>> As was suggested earlier,

Re: [Cython] To Add datetime.pxd to cython.cpython

2013-03-03 Thread Zaur Shibzukhov
2013/3/3 Zaur Shibzukhov : > 2013/3/3 Zaur Shibzukhov : >> 2013/3/2 Stefan Behnel : >>> Hi, >>> >>> the last pull request looks good to me now. >>> >>> https://github.com/cython/cython/pull/189 >>> >>> Any more comments on it? >> >> As was suggested earlier, I added `import_datetime` inline functio

Re: [Cython] To Add datetime.pxd to cython.cpython

2013-03-03 Thread Zaur Shibzukhov
2013/3/3 Zaur Shibzukhov : > 2013/3/2 Stefan Behnel : >> Hi, >> >> the last pull request looks good to me now. >> >> https://github.com/cython/cython/pull/189 >> >> Any more comments on it? > > As was suggested earlier, I added `import_datetime` inline function to > initialize PyDateTime C API inst

Re: [Cython] To Add datetime.pxd to cython.cpython

2013-03-03 Thread Zaur Shibzukhov
2013/3/2 Stefan Behnel : > Hi, > > the last pull request looks good to me now. > > https://github.com/cython/cython/pull/189 > > Any more comments on it? > > Stefan > As was suggested earlier, I added `import_datetime` inline function to initialize PyDateTime C API instead of direct usage of "non-

Re: [Cython] To Add datetime.pxd to cython.cpython

2013-03-02 Thread Stefan Behnel
Hi, the last pull request looks good to me now. https://github.com/cython/cython/pull/189 Any more comments on it? Stefan ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] To Add datetime.pxd to cython.cpython

2013-02-22 Thread Robert Bradshaw
These could be provided as inline functions in the pxd rather rather than adding another hack like we did for array. On Thu, Feb 21, 2013 at 11:01 PM, ZS wrote: > Extended part is in datetime_ex.h: > > #include "datetime.h" > > #define PyDateTime_FromDateAndTimeEx(year, month, day, hour, min, sec