Title: Note regarding + mode truncation applies to both text and binary mode by andresdelfino · Pull Request #11314 · python/cpython · GitHub
Open Graph Title: Note regarding + mode truncation applies to both text and binary mode by andresdelfino · Pull Request #11314 · python/cpython
X Title: Note regarding + mode truncation applies to both text and binary mode by andresdelfino · Pull Request #11314 · python/cpython
Description: Text mode works exactly the same as binary mode for updating (w+/r+ vs w+b/r+b): testfile = 'testfile' with open(testfile, 'w') as file: file.write('A') with open(testfile, 'r+') as file: file_content = file.read() print('Content:', file_content) with open(testfile, 'w+') as file: file_content = file.read() print('Content:', file_content)
Open Graph Description: Text mode works exactly the same as binary mode for updating (w+/r+ vs w+b/r+b): testfile = 'testfile' with open(testfile, 'w') as file: file.write('A') with open(test...
X Description: Text mode works exactly the same as binary mode for updating (w+/r+ vs w+b/r+b): testfile = 'testfile' with open(testfile, 'w') as file: file.write('A&a...
Opengraph URL: https://github.com/python/cpython/pull/11314
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:eb76d85e-1b6e-458b-5e90-c50cb7ea47eb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CEAC:C4B40:D42B48:13406B1:6A54ABCE |
| html-safe-nonce | 6134678ec8f39c54fb19c54c527f4311085d7c4edc7776a71a257233dd508533 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUFDOkM0QjQwOkQ0MkI0ODoxMzQwNkIxOjZBNTRBQkNFIiwidmlzaXRvcl9pZCI6IjcxMjc0NTM0MzcyODIwMDM5MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7e44851449e45f234543fa73710dfb360ccf4d8f49370e2b0b935e2221b18cc6 |
| hovercard-subject-tag | pull_request:240891149 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/11314/files |
| twitter:image | https://avatars.githubusercontent.com/u/34587441?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/34587441?s=400&v=4 |
| og:image:alt | Text mode works exactly the same as binary mode for updating (w+/r+ vs w+b/r+b): testfile = 'testfile' with open(testfile, 'w') as file: file.write('A') with open(test... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width