Title: .pyc files and bytecode changes · Issue #1090 · RustPython/RustPython · GitHub
Open Graph Title: .pyc files and bytecode changes · Issue #1090 · RustPython/RustPython
X Title: .pyc files and bytecode changes · Issue #1090 · RustPython/RustPython
Description: As mentioned .pyc are working now when sys.dont_write_bytecode is set to False. I would like to make the use of .pyc files the default but I am not sure how should we follow changes in the bytecode. CPython has a magic number defined in ...
Open Graph Description: As mentioned .pyc are working now when sys.dont_write_bytecode is set to False. I would like to make the use of .pyc files the default but I am not sure how should we follow changes in the bytecode...
X Description: As mentioned .pyc are working now when sys.dont_write_bytecode is set to False. I would like to make the use of .pyc files the default but I am not sure how should we follow changes in the bytecode...
Opengraph URL: https://github.com/RustPython/RustPython/issues/1090
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":".pyc files and bytecode changes","articleBody":"As [mentioned](https://github.com/RustPython/RustPython/pull/1068#issue-292730561) .pyc are working now when `sys.dont_write_bytecode` is set to `False`.\r\nI would like to make the use of `.pyc` files the default but I am not sure how should we follow changes in the bytecode. CPython has a magic number defined in `_bootstrap_external.py` that changes every time the bytecode is changed. RustPython is changing rapidly and I don't think we would like to update a magic number every change in the bytecode.\r\n\r\nI have a few suggestion:\r\n\r\n- Use the git commit as the magic: Would allow multiple runs with same `.pyc` without code changes.\r\n- Use a random number on main start: Would allow only the same run of main to use the same `.pyc`.","author":{"url":"https://github.com/palaviv","@type":"Person","name":"palaviv"},"datePublished":"2019-06-30T15:06:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1090/RustPython/issues/1090"}
| 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:14e68c5c-597a-9146-7615-5496de1f2e5d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDBC:126BE:125A0F5:1A64B45:6A58E891 |
| html-safe-nonce | 1f75a16f9845d447b1fb11257de793956d17c44793e00fa9597ea694963cbcf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREJDOjEyNkJFOjEyNUEwRjU6MUE2NEI0NTo2QTU4RTg5MSIsInZpc2l0b3JfaWQiOiI2ODU5NzEwOTY5OTYwNTIzOTIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 207351fcc1c20f83934fbe473262495526d0ac83a9210b696749d0844597b47d |
| hovercard-subject-tag | issue:462414871 |
| 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/RustPython/RustPython/1090/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8223029f1857be07bdaca2441b53bdb74c1611d11b3afc7be8e39786153cc371/RustPython/RustPython/issues/1090 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8223029f1857be07bdaca2441b53bdb74c1611d11b3afc7be8e39786153cc371/RustPython/RustPython/issues/1090 |
| og:image:alt | As mentioned .pyc are working now when sys.dont_write_bytecode is set to False. I would like to make the use of .pyc files the default but I am not sure how should we follow changes in the bytecode... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | palaviv |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width