Title: Make IOBase a context manager by jaroel · Pull Request #649 · RustPython/RustPython · GitHub
Open Graph Title: Make IOBase a context manager by jaroel · Pull Request #649 · RustPython/RustPython
X Title: Make IOBase a context manager by jaroel · Pull Request #649 · RustPython/RustPython
Description: This allows the following: with open('README.md') as fp: fp.read() This does not close the file, as there's no close method yet. See #547 . Fixes #648
Open Graph Description: This allows the following: with open('README.md') as fp: fp.read() This does not close the file, as there's no close method yet. See #547 . Fixes #648
X Description: This allows the following: with open('README.md') as fp: fp.read() This does not close the file, as there's no close method yet. See #547 . Fixes #648
Opengraph URL: https://github.com/RustPython/RustPython/pull/649
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9c8940db-9747-636e-09ed-3ec5d72f6159 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E0C2:171A3F:BB2C3E:111BCEC:6A58A35F |
| html-safe-nonce | 1297053201d7b63850cd608e1f2a6b2ab70c4ed70f7646d34da1da22bd3ddd7b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEMyOjE3MUEzRjpCQjJDM0U6MTExQkNFQzo2QTU4QTM1RiIsInZpc2l0b3JfaWQiOiI1Mjk4NjE1NDEwMTMyMjk2NTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e26dc6b0ff994610a0af4f79f32fa6aec9fa4d86fb394d61b088dc05f0fc9f90 |
| hovercard-subject-tag | pull_request:259729917 |
| 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/RustPython/RustPython/pull/649/files |
| twitter:image | https://avatars.githubusercontent.com/u/70700?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/70700?s=400&v=4 |
| og:image:alt | This allows the following: with open('README.md') as fp: fp.read() This does not close the file, as there's no close method yet. See #547 . Fixes #648 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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