[issue30155] Add ability to get tzinfo from a datetime instance in C API

2020-10-21 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30155] Add ability to get tzinfo from a datetime instance in C API

2020-09-23 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset 2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5 by Zackery Spytz in branch 'master': bpo-30155: Add macros to get tzinfo from datetime instances (GH-21633) https://github.com/python/cpython/commit/2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5 -- __

[issue30155] Add ability to get tzinfo from a datetime instance in C API

2020-07-26 Thread Zackery Spytz
Zackery Spytz added the comment: I have created PR 21633 to add these macros. Please consider taking a look. -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___

[issue30155] Add ability to get tzinfo from a datetime instance in C API

2020-07-26 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 5.0 -> 6.0 pull_requests: +20775 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21633 ___ Python tracker

[issue30155] Add ability to get tzinfo from a datetime instance in C API

2020-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm going to rename this bug to focus only on issue #1. I think we can accept > a PR adding two new macros. I would suggest calling them: > - PyDateTime_DATE_GET_TZINFO > - PyDateTime_TIME_GET_TZINFO +1 for this. -- nosy: +pitrou _

[issue30155] Add ability to get tzinfo from a datetime instance in C API

2020-02-10 Thread Paul Ganssle
Paul Ganssle added the comment: So this bug is asking for two things: 1. An official accessor for the `tzinfo` component of an existing datetime, which I think is very reasonable in light of the fact that there are official accessors for all the other components of a datetime. 2. An officia