-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
parse('February 21, 1994') fails for 2.0.0 #205
Comments
@timofurrer The API has changed slightly in the new |
@timofurrer I've also determined that, from maya's point of view, the parser now returns things that are not just datetimes (also intervals, durations?), and there seems a pervasive assumption inside maya that pendulum's parser returns only datetimes. (This might not be considered a functional change in the pendulum parser API, I guess, but it doesn't seem to have been considered as possible in maya...) |
@sdispater Alright, thanks for the hint. I'll try that @ViktorHaag That's definitely something we need to have a look at. But how is that not a functional change in the pandulum parser API? Seems like one :) |
@timofurrer I don't know if it was ever promised that pendulum.parse was a public API, or that it would always return something you could treat like a datetime, or whether you inferred that based on its availability and behaviour... but in any case, the switch in version from 1.5.x to 2.x pretty clearly indicates that this might be a not-backwards-compatible boundary, so ... I don't want to start up a dispute here about "what's a major change and what isn't" or "what's an API and what isn't"... I was just trying to point out that there was more than just strict parsing that would cause issues with Maya's use of this library. |
Okay, that's fine. I wasn't aware that it's not a public API :) In any case, thanks for the hint. 🍻 |
I'm going to close this for now. Thanks guys 🍻 |
We at maya have some test doing things like:
This works fine for releases prior to 2.0.0 but fails for 2.0.0 with the following traceback:
What's going on here? Is this format not supported any more?
The text was updated successfully, but these errors were encountered: