This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author p-ganssle
Recipients edison.abahurire, p-ganssle
Date 2019-05-07.14:17:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557238651.7.0.774867491617.issue36833@roundup.psfhosted.org>
In-reply-to
Content
This is a child issue for bpo 36782, specifically for testing the macro-only datetime C API functions

Untested macros with no corresponding API module:

- PyDateTime_GET_YEAR
- PyDateTime_GET_MONTH
- PyDateTime_GET_DAY
- PyDateTime_DATE_GET_HOUR
- PyDateTime_DATE_GET_MINUTE
- PyDateTime_DATE_GET_SECOND
- PyDateTime_DATE_GET_MICROSECOND

- PyDateTime_TIME_GET_HOUR
- PyDateTime_TIME_GET_MINUTE
- PyDateTime_TIME_GET_SECOND
- PyDateTime_TIME_GET_MICROSECOND

- PyDateTime_DELTA_GET_DAYS
- PyDateTime_DELTA_GET_SECONDS
- PyDateTime_DELTA_GET_MICROSECONDS

For all of these, I think you can write one "wrapper function" that just extracts all fields as a tuple (4 C API wrapper functions - date, datetime, time, timedelta).

For each function, test with both the standard class and a subclass.
History
Date User Action Args
2019-05-07 14:17:31p-gansslesetrecipients: + p-ganssle, edison.abahurire
2019-05-07 14:17:31p-gansslesetmessageid: <1557238651.7.0.774867491617.issue36833@roundup.psfhosted.org>
2019-05-07 14:17:31p-gansslelinkissue36833 messages
2019-05-07 14:17:31p-gansslecreate