Title: **builtins** is not available in python2.7 · Issue #604 · PythonCharmers/python-future · GitHub
Open Graph Title: **builtins** is not available in python2.7 · Issue #604 · PythonCharmers/python-future
X Title: **builtins** is not available in python2.7 · Issue #604 · PythonCharmers/python-future
Description: I'm working on the migration of my scripts from py2 to py3. So using the futurize tool. as mentioned in the feature section of the git page "future.builtins package (also available as builtins on Py2) provides backports and remappings fo...
Open Graph Description: I'm working on the migration of my scripts from py2 to py3. So using the futurize tool. as mentioned in the feature section of the git page "future.builtins package (also available as builtins on P...
X Description: I'm working on the migration of my scripts from py2 to py3. So using the futurize tool. as mentioned in the feature section of the git page "future.builtins package (also available as buil...
Opengraph URL: https://github.com/PythonCharmers/python-future/issues/604
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" **builtins** is not available in python2.7","articleBody":"I'm working on the migration of my scripts from py2 to py3. So using the **futurize** tool.\r\nas mentioned in the feature section of the git page \"**future.builtins package (**also available as builtins on Py2**) provides backports and remappings for 20 builtins with different semantics on Py3 versus Py2**\" but the case is **builtins** is not available in python2.7\r\n\r\n`Python 2.7.17 (default, Feb 5 2022, 02:29:07) \r\n[GCC 9.2.0] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from builtins import str\r\nTraceback (most recent call last):\r\n File \"\u003cstdin>\", line 1, in \u003cmodule>\r\nImportError: No module named builtins\r\n>>> `\r\n\r\nSince I used futurize tool, it imported \"from builtins import objects\" in my script but now this compatible with py3 not py2. how can I make compatible with both version for the builtin module. please help.\r\n","author":{"url":"https://github.com/prasanta2018","@type":"Person","name":"prasanta2018"},"datePublished":"2022-04-04T15:09:48Z","url":"https://github.com/PythonCharmers/python-future/issues/604"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:125fa060-d960-27c1-7bbe-427fe1cca590 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEDE:2FC55E:6D69B:99A65:6B041537 |
| html-safe-nonce | 5b307b0b7dd5487639029d803260708af63cbd36916f3d8fe3d091b76b000ba1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRURFOjJGQzU1RTo2RDY5Qjo5OUE2NTo2QjA0MTUzNyIsInZpc2l0b3JfaWQiOiI4ODU1MzU2NzY5NDYwMDMyODIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bebe4c4ee22a761908fa7d077b28809433cf73937a560a6d41dbadb12d9d592c |
| hovercard-subject-tag | issue:1191937807 |
| 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/604/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b043ac1e2e648ec523c5a06c1e914b5b6871812886bd88a9d52433f6f709ade3/PythonCharmers/python-future/issues/604 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b043ac1e2e648ec523c5a06c1e914b5b6871812886bd88a9d52433f6f709ade3/PythonCharmers/python-future/issues/604 |
| og:image:alt | I'm working on the migration of my scripts from py2 to py3. So using the futurize tool. as mentioned in the feature section of the git page "future.builtins package (also available as builtins on P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | prasanta2018 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width