Title: Cannot Unpickle Python2 dict with future.str in key as it's unhashable in python3 · Issue #454 · PythonCharmers/python-future · GitHub
Open Graph Title: Cannot Unpickle Python2 dict with future.str in key as it's unhashable in python3 · Issue #454 · PythonCharmers/python-future
X Title: Cannot Unpickle Python2 dict with future.str in key as it's unhashable in python3 · Issue #454 · PythonCharmers/python-future
Description: If I have a dictionary which has a key of type: future.types.newstr.newstr (basically the str from builtins), and I try to pickle it and unpickle it back in python3 it doesn't work: Traceback (most recent call last): File "/.PyCharm2018....
Open Graph Description: If I have a dictionary which has a key of type: future.types.newstr.newstr (basically the str from builtins), and I try to pickle it and unpickle it back in python3 it doesn't work: Traceback (most...
X Description: If I have a dictionary which has a key of type: future.types.newstr.newstr (basically the str from builtins), and I try to pickle it and unpickle it back in python3 it doesn't work: Traceback (...
Opengraph URL: https://github.com/PythonCharmers/python-future/issues/454
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot Unpickle Python2 dict with future.str in key as it's unhashable in python3","articleBody":"If I have a dictionary which has a key of type: future.types.newstr.newstr (basically the str from builtins), and I try to pickle it and unpickle it back in python3 it doesn't work:\r\n```\r\nTraceback (most recent call last):\r\n File \"/.PyCharm2018.3/config/scratches/scratch_6.py\", line 16, in \u003cmodule\u003e\r\n main()\r\n File \"/.PyCharm2018.3/config/scratches/scratch_6.py\", line 11, in main\r\n trialsArr = pickle.load(fp)\r\nTypeError: unhashable type: 'newstr'\r\n```\r\n\r\nIs there a way to work-around for this?","author":{"url":"https://github.com/shashank88","@type":"Person","name":"shashank88"},"datePublished":"2019-05-02T17:35:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/454/python-future/issues/454"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:338892b1-c12b-fa6b-9a2e-01545b5b59be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B894:6BE0D:803099:ABC3D8:69697A74 |
| html-safe-nonce | d5e688e42e5a27649e861c9755b7c63dded28d40451c91037ec8b78e5a2bff70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODk0OjZCRTBEOjgwMzA5OTpBQkMzRDg6Njk2OTdBNzQiLCJ2aXNpdG9yX2lkIjoiMzk0ODkzOTkwMzE5NjgyMjEzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bee8c75956e3ccdb0d36d6127665c2cbaddb8d7bf18790e6b29fd0fb5ec66251 |
| hovercard-subject-tag | issue:439705796 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PythonCharmers/python-future/454/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a478b6403516480eba776456b92fb7e074b7c304fb06b595c581b412582a014/PythonCharmers/python-future/issues/454 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a478b6403516480eba776456b92fb7e074b7c304fb06b595c581b412582a014/PythonCharmers/python-future/issues/454 |
| og:image:alt | If I have a dictionary which has a key of type: future.types.newstr.newstr (basically the str from builtins), and I try to pickle it and unpickle it back in python3 it doesn't work: Traceback (most... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shashank88 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git |
| octolytics-dimension-user_id | 3365815 |
| octolytics-dimension-user_login | PythonCharmers |
| octolytics-dimension-repository_id | 11403699 |
| octolytics-dimension-repository_nwo | PythonCharmers/python-future |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11403699 |
| octolytics-dimension-repository_network_root_nwo | PythonCharmers/python-future |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width