Skip to content

REF: FY5253Mixin to share methods #34262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 20, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

self, n=1, normalize=False, weekday=0, startingMonth=1, variation="nearest"
):
BaseOffset.__init__(self, n, normalize)
object.__setattr__(self, "startingMonth", startingMonth)
Copy link
Member

Choose a reason for hiding this comment

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

question but do we need to reference object here any more or can we not just reference the built in setattr? This is a Py2 compat way of setting things no?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a Py2 compat way of setting things no?

No, it is is compat for a recently-removed def __setattr__ that raised AttributeError to make DateOffsets immutable. We removed that __setattr__ patch because it didnt place nicely with making BaseOffset a cdef class. So we're in a bit of a limbo until we get all of the __init__ methods to be cdef-class-only.

@WillAyd WillAyd added the Clean label May 20, 2020
@jreback jreback added this to the 1.1 milestone May 20, 2020
@jreback jreback added the Frequency DateOffsets label May 20, 2020
@jreback jreback merged commit aa79cbd into pandas-dev:master May 20, 2020
@jreback
Copy link
Contributor

jreback commented May 20, 2020

thanks!

@jbrockmendel jbrockmendel deleted the ref-liboffsets-fy branch May 20, 2020 15:14
PuneethaPai pushed a commit to PuneethaPai/pandas that referenced this pull request May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants