> Sure. Use macros like PyDateTime_DELTA_GET_DAYS(). The structure is not part > of the public API anyway. > With CPython the macros don't make any difference, but PyPy implements them > as actual function calls.
Ah, that makes sense. The code in question was written when we were still using Python 2.3 or 2.4, before there was any datetime C API. A little tweak is in order I guess. Why are those PyDateTime*GET* declarations in datetime.h? I might well have noticed them before asking a basic question. Skip _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev