Author martin.panter
Recipients Alexander.Belopolsky, Anders.Hovmöller, Arfrever, Roman.Evstifeev, SilentGhost, aymeric.augustin, barry, belopolsky, berker.peksag, cvrebert, davydov, deronnax, eric.araujo, flying sheep, jcea, jstasiak, jwilk, karlcow, kirpit, martin.panter, mcepl, mihaic, nagle, pbryan, perey, piotr.dobrogost, r.david.murray, roysmith, vstinner
Date 2016-04-21.01:08:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461200917.08.0.232124616519.issue15873@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-04-21 01:08:37martin.pantersetrecipients: + 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:37martin.pantersetmessageid: <1461200917.08.0.232124616519.issue15873@psf.upfronthosting.co.za>
2016-04-21 01:08:37martin.panterlinkissue15873 messages
2016-04-21 01:08:35martin.pantercreate