René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9c8940db-9747-636e-09ed-3ec5d72f6159
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE0C2:171A3F:BB2C3E:111BCEC:6A58A35F
html-safe-nonce1297053201d7b63850cd608e1f2a6b2ab70c4ed70f7646d34da1da22bd3ddd7b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEMyOjE3MUEzRjpCQjJDM0U6MTExQkNFQzo2QTU4QTM1RiIsInZpc2l0b3JfaWQiOiI1Mjk4NjE1NDEwMTMyMjk2NTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace26dc6b0ff994610a0af4f79f32fa6aec9fa4d86fb394d61b088dc05f0fc9f90
hovercard-subject-tagpull_request:259729917
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/649/files
twitter:imagehttps://avatars.githubusercontent.com/u/70700?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/70700?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/649/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F649%2Ffiles
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F649%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/649/files
Reloadhttps://github.com/RustPython/RustPython/pull/649/files
Reloadhttps://github.com/RustPython/RustPython/pull/649/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/649/files
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.5k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 22.2k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 287 https://github.com/RustPython/RustPython/issues
Pull requests 101 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality 0 https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Code https://github.com/RustPython/RustPython
Issues https://github.com/RustPython/RustPython/issues
Pull requests https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
rmliddlehttps://github.com/rmliddle
RustPython:masterhttps://github.com/RustPython/RustPython/tree/master
jaroel:context-manager-openhttps://github.com/jaroel/RustPython/tree/context-manager-open
Conversation 1 https://github.com/RustPython/RustPython/pull/649
Commits 1 https://github.com/RustPython/RustPython/pull/649/commits
Checks 0 https://github.com/RustPython/RustPython/pull/649/checks
Files changed https://github.com/RustPython/RustPython/pull/649/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/649/files
Make IOBase a context manager https://github.com/RustPython/RustPython/pull/649/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/649/files
8f6257b Make open a context manager jaroel Mar 10, 2019 https://github.com/RustPython/RustPython/pull/649/commits/8f6257b37f071d670e4d3750afd1d7b63ddf5149
Clear filters https://github.com/RustPython/RustPython/pull/649/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/649/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/649/files
builtin_open.py https://github.com/RustPython/RustPython/pull/649/files#diff-a8f7fb6c0f27aa7e532ec53d74c49154c9dd114f0699c28faa87a10ee9717791
io.rs https://github.com/RustPython/RustPython/pull/649/files#diff-3f2165c31ec5cbbb2f501f545c4ee243ccdf312ad4d7ea781716e9243cd945a6
tests/snippets/builtin_open.pyhttps://github.com/RustPython/RustPython/pull/649/files#diff-a8f7fb6c0f27aa7e532ec53d74c49154c9dd114f0699c28faa87a10ee9717791
View file https://github.com/jaroel/RustPython/blob/8f6257b37f071d670e4d3750afd1d7b63ddf5149/tests/snippets/builtin_open.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/649/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/649/files#diff-a8f7fb6c0f27aa7e532ec53d74c49154c9dd114f0699c28faa87a10ee9717791
vm/src/stdlib/io.rshttps://github.com/RustPython/RustPython/pull/649/files#diff-3f2165c31ec5cbbb2f501f545c4ee243ccdf312ad4d7ea781716e9243cd945a6
View file https://github.com/jaroel/RustPython/blob/8f6257b37f071d670e4d3750afd1d7b63ddf5149/vm/src/stdlib/io.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/649/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/649/files#diff-3f2165c31ec5cbbb2f501f545c4ee243ccdf312ad4d7ea781716e9243cd945a6
https://github.com/RustPython/RustPython/pull/649/files#diff-3f2165c31ec5cbbb2f501f545c4ee243ccdf312ad4d7ea781716e9243cd945a6
https://github.com/RustPython/RustPython/pull/649/files#diff-3f2165c31ec5cbbb2f501f545c4ee243ccdf312ad4d7ea781716e9243cd945a6
https://github.com/RustPython/RustPython/pull/649/files#diff-3f2165c31ec5cbbb2f501f545c4ee243ccdf312ad4d7ea781716e9243cd945a6
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.