Skip to content
Discussion options

You must be logged in to vote

Hi, sorry you've hit a painful edge case here. We have a longstanding issue in #1813 but we need to refactor our traits to make sense of this because having ToPyObject and IntoPy is already confusing, having fallible versions of both for a total of 4 traits seems like too much. Unfortunately it is outside of my capacity to propose a solution right now, but this definitely needs fixing in the mid to long term. Help is also welcome.

What you can do is use the python datetime constructors to create the python objects in your own code and handle errors there.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@warpedgeoid
Comment options

Answer selected by warpedgeoid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants