-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Separate out strptime.pyx from tslib #17342
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
Changes from 8 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9b684a3
Separate out strptime.pyx
jbrockmendel 119dd22
whitespace fixup
jbrockmendel 262da03
lint fixup
jbrockmendel ac6a22a
flake8 whitespace fixup
jbrockmendel 9102cb7
dummy commit to force ci
jbrockmendel 89fcc2a
Remove cython decorators; revert camelCase fixes
jbrockmendel 73c4e7b
Add missing util cimport
jbrockmendel 930d21a
Merge branch 'master' into strptime
jbrockmendel bf3e618
Fixup per reviewer comments
jbrockmendel 50f3804
Merge branch 'strptime' of https://github.com/jbrockmendel/pandas int…
jbrockmendel 1917bc1
flake8 whitespace fixup
jbrockmendel 67c6664
Merge branch 'master' of https://github.com/pandas-dev/pandas into st…
jbrockmendel 5d8d1c4
Rearrange docstrings per reviewer request
jbrockmendel 6cadd2b
fixup missing util cimport
jbrockmendel 6e9e44f
rearrange per reviewer requests
jbrockmendel 5478aa2
flake8 whitespace fixup
jbrockmendel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# flake8: noqa | ||
|
||
from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to make this a bint, and just return True/False.
Then make another function which calls this one which actually raises the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The longer-term solution that I've implemented but not PRed is to move a bunch of datetime.pxd into a pyx file where OutOfBoundsDatetime can be defined. This also ends up clearing out a lot of the setup.py dependencies (orthogonal to this discussion, but still).
Is returning a bint actually any simpler than re-raising? It isn't obvious whether True means "error state is True" or "everything is OK is True", whereas raising is unambiguous.
That said, I'll do it your way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah its ok, just don't like to muddle even more.