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

Use istype() when checking if canned object is a dict #4047

Merged
merged 1 commit into from Aug 16, 2013

Conversation

sdrave
Copy link
Contributor

@sdrave sdrave commented Aug 16, 2013

Using istype(canned, dict) instead of isinstance(canned, dict) ensures that dict subclasses retain their type during unserialization. This also agrees with the implementation of serialize_object().

Using istype(canned, dict) instead of isinstance(canned, dict) ensures that dict subclasses retain their type during unserialization. This also agrees with the implementation of serialize_object().
minrk added a commit that referenced this pull request Aug 16, 2013
Use istype() when checking if canned object is a dict
@minrk minrk merged commit 85dc1e3 into ipython:master Aug 16, 2013
minrk added a commit that referenced this pull request Aug 16, 2013
Using istype(canned, dict) instead of isinstance(canned, dict) ensures that dict subclasses retain their type during unserialization. This also agrees with the implementation of serialize_object().
@sdrave sdrave deleted the patch-1 branch August 16, 2013 18:24
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Use istype() when checking if canned object is a dict
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