Skip to content
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

Make traitlets notify check more robust against classes redefining equality and bool #5220

Merged
merged 1 commit into from Feb 25, 2014

Conversation

jasongrout
Copy link
Member

Before this change, numpy arrays caused problems since comparing two numpy arrays returns an array of truth values, rather than a single truth value. This change guards against redefining the semantics of comparison by notifying on a trait change if the equality comparison returns anything other than an explicit True value.

…uality and bool

Before this change, numpy arrays caused problems since comparing two numpy arrays returns an array of truth values, rather than a single truth value.  This change guards against redefining the semantics of comparison by notifying on a trait change if the equality comparison returns anything other than an explicit True value.
minrk added a commit that referenced this pull request Feb 25, 2014
Make traitlets notify check more robust against classes redefining equality and bool
@minrk minrk merged commit 1c9655f into ipython:master Feb 25, 2014
@minrk
Copy link
Member

minrk commented Feb 25, 2014

Makes sense, thanks.

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Make traitlets notify check more robust against classes redefining equality and bool
@jasongrout jasongrout deleted the notify-check-2 branch April 17, 2015 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants