Skip to content

DEPR: _timelex is deprecated in dateutil #21322

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

Closed
gfyoung opened this issue Jun 5, 2018 · 6 comments
Closed

DEPR: _timelex is deprecated in dateutil #21322

gfyoung opened this issue Jun 5, 2018 · 6 comments
Labels
Dependencies Required and optional dependencies Deprecate Functionality to remove in pandas
Milestone

Comments

@gfyoung
Copy link
Member

gfyoung commented Jun 5, 2018

See: #21137

The question is: how exactly do we replicate the functionality?

@gfyoung gfyoung added Deprecate Functionality to remove in pandas Dependencies Required and optional dependencies labels Jun 5, 2018
@gfyoung gfyoung changed the title DEPR: _timelex is deprecated in scipy DEPR: _timelex is deprecated in dateutil Jun 5, 2018
@gfyoung gfyoung added this to the Next Major Release milestone Jun 5, 2018
@pandas-dev pandas-dev deleted a comment from gfyoung Jun 5, 2018
@jreback
Copy link
Contributor

jreback commented Jun 5, 2018

cc @pganssle

@pganssle
Copy link
Contributor

pganssle commented Jun 5, 2018

To be clear, _timelex is not deprecated in dateutil, it's private. If you need that functionality I recommend copy-pasting it or using @jbrockmendel's sleek new implementation (dateutil/dateutil#732). dateutil is under a permissive license so the only requirement is that you retain the copyright notice (which I can't waive, unfortunately, because I'm not the original author of _timelex). When some form of _timelex is eventually made public, you can switch to that.

@gfyoung
Copy link
Member Author

gfyoung commented Jun 6, 2018

@pganssle :

To be clear, _timelex is not deprecated in dateutil, it's private.

Ah, thank you for clarifying that. Admittedly, the message associated with the DeprecationWarning had a little bit of a cognitive dissonance upon first read.

When some form of _timelex is eventually made public, you can switch to that.

Do you have a timeline by any chance for making _timelex public? If it's not on the horizon, we could copy-paste as an immediate fix (@jreback , we do that with clipboard IINM).

@jreback
Copy link
Contributor

jreback commented Jun 6, 2018

@gfyoung I would just in-line the code from above

@jbrockmendel
Copy link
Member

Do you have a timeline by any chance for making _timelex public?

There's some discussion in dateutil#729. Short answer: "no".

If it's not on the horizon, we could copy-paste as an immediate fix

Definitely should use the version in dateutil#732 as it is much simpler and more performant. I think even that can be pared down to a single call to re.findall.

@gfyoung
Copy link
Member Author

gfyoung commented Jun 6, 2018

@jbrockmendel : Thanks for clarification! Since you're working directly on this, you probably would know best as to when we should port over a copy of the implementation.

gfyoung added a commit to forking-repos/pandas that referenced this issue Dec 31, 2018
Removes the DeprecationWarning raised by dateutil
because it's a private class.

Implementation taken from the following PR:

dateutil/dateutil#732

Closes pandas-devgh-21322.
gfyoung added a commit to forking-repos/pandas that referenced this issue Dec 31, 2018
Removes the DeprecationWarning raised by dateutil
because it's a private class.

Implementation taken from the following PR:

dateutil/dateutil#732

Closes pandas-devgh-21322.
gfyoung added a commit to forking-repos/pandas that referenced this issue Dec 31, 2018
Removes the DeprecationWarning raised by dateutil
because it's a private class.

Implementation taken from the following PR:

dateutil/dateutil#732

Closes pandas-devgh-21322.
@jreback jreback modified the milestones: Contributions Welcome, 0.24.0 Dec 31, 2018
gfyoung added a commit to forking-repos/pandas that referenced this issue Jan 1, 2019
Removes the DeprecationWarning raised by dateutil
because it's a private class.

Implementation taken from the following PR:

dateutil/dateutil#732

Closes pandas-devgh-21322.
jreback pushed a commit that referenced this issue Jan 1, 2019
* MAINT: Port _timelex in codebase

Removes the DeprecationWarning raised by dateutil
because it's a private class.

Implementation taken from the following PR:

dateutil/dateutil#732

Closes gh-21322.

* MAINT: Drop _timelex compat for dateutil 2.2
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this issue Feb 28, 2019
* MAINT: Port _timelex in codebase

Removes the DeprecationWarning raised by dateutil
because it's a private class.

Implementation taken from the following PR:

dateutil/dateutil#732

Closes pandas-devgh-21322.

* MAINT: Drop _timelex compat for dateutil 2.2
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this issue Feb 28, 2019
* MAINT: Port _timelex in codebase

Removes the DeprecationWarning raised by dateutil
because it's a private class.

Implementation taken from the following PR:

dateutil/dateutil#732

Closes pandas-devgh-21322.

* MAINT: Drop _timelex compat for dateutil 2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Required and optional dependencies Deprecate Functionality to remove in pandas
Projects
None yet
Development

No branches or pull requests

4 participants