Skip to content

Conversation

@jbrockmendel
Copy link
Member

Motivation: to make more progress on getting DateOffset into cython, we need to be able to import Timestamp into liboffsets. ATM that would induce circular dependencies.

This allows us to merge c_timestamp back into timestamps.pyx; the initial motivation for that was to be able to cimport _Timestamp into libconversion.

In a follow-up we can use this pattern to make a faster is_interval check (that doesnt have to go through python-space)

@@ -0,0 +1,20 @@
from cpython.datetime cimport datetime, timedelta

cdef class ABCTimedelta(timedelta):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ic, so now we have a cdef class that we can do instance on w/o having to import the world, nice.

@jreback jreback added the Datetime Datetime data dtype label May 7, 2020
@jreback jreback added this to the 1.1 milestone May 7, 2020
@jreback jreback merged commit fa3662c into pandas-dev:master May 7, 2020
@jbrockmendel jbrockmendel deleted the base-util branch May 7, 2020 22:46
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Datetime Datetime data dtype

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants