[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-17 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 463acb73fd79 by Amaury Forgeot d'Arc in branch 'default': Issue #13727: Add 3 macros to access PyDateTime_Delta members: http://hg.python.org/cpython/rev/463acb73fd79 -- nosy: +python-dev ___ Python trac

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ow. Then I don't mind :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I named them following the other accessor macros: PyDateTime_TIME_GET_HOUR(), even though the check function is named PyTime_Check(). Which inconsistency do you prefer? :) -- ___ Python tracker

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The macros should be named PyDelta_XXX, as PyDelta_Check and friend. Otherwise, makes sense. -- nosy: +pitrou ___ Python tracker ___ __

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-07 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : All objects of the datetime module have macros to access their properties, except timedelta. This simple patch adds the macros PyDateTime_DELTA_GET_DAYS, PyDateTime_DELTA_GET_SECONDS, PyDateTime_DELTA_GET_MICROSECONDS; module developers are encouraged