Message263867
If you decide to only do a Python implementation, the main reason to write a wrapper in C would be because the datetime class is defined in C. Similar to how the datetime_strptime() function in Modules/_datetimemodule.c imports and calls _strptime._strptime_datetime().
An alternative might be to subclass the C classes _datetime.datetime, etc, and define the methods directly in those subclasses. Similar to how the C-defined class _socket.socket is subclassed in Lib/socket.py and more methods are added. |
|
Date |
User |
Action |
Args |
2016-04-21 01:08:37 | martin.panter | set | recipients:
+ martin.panter, barry, jcea, roysmith, belopolsky, nagle, vstinner, jwilk, mcepl, eric.araujo, Arfrever, r.david.murray, davydov, cvrebert, karlcow, SilentGhost, Alexander.Belopolsky, perey, flying sheep, mihaic, aymeric.augustin, Roman.Evstifeev, berker.peksag, piotr.dobrogost, kirpit, Anders.Hovmöller, jstasiak, deronnax, pbryan |
2016-04-21 01:08:37 | martin.panter | set | messageid: <1461200917.08.0.232124616519.issue15873@psf.upfronthosting.co.za> |
2016-04-21 01:08:37 | martin.panter | link | issue15873 messages |
2016-04-21 01:08:35 | martin.panter | create | |
|