Commits

Antoine Pitrou authored 329c9944554
ARROW-6597: [Python] Sanitize Python datetime handling The official datetime C macros (PyDate*) operate on a static variable named PyDateTimeAPI. This forces us to initialize that static variable using PyDateTime_IMPORT in every datetime-using C++ module. Fix the issue by redefining PyDateTimeAPI to a global variable. Fixes a crash I got locally in test_pandas.py. Closes #5416 from pitrou/ARROW-6597-py-datetime-handling and squashes the following commits: d4456561a <Antoine Pitrou> ARROW-6597: Sanitize Python datetime handling Authored-by: Antoine Pitrou <antoine@python.org> Signed-off-by: Antoine Pitrou <antoine@python.org>