Title: tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable · Issue #63079 · python/cpython · GitHub
Open Graph Title: tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable · Issue #63079 · python/cpython
X Title: tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable · Issue #63079 · python/cpython
Description: BPO 18879 Nosy @birkenfeld, @ncoghlan, @pitrou, @vstinner, @bitdancer, @meadori, @socketpair, @vadmium, @serhiy-storchaka, @jstasiak Files tempfile.patchtempfile_simplify.patchtempfile_wrap_methods.patchtempfile_lifetime.patch Note: thes...
Open Graph Description: BPO 18879 Nosy @birkenfeld, @ncoghlan, @pitrou, @vstinner, @bitdancer, @meadori, @socketpair, @vadmium, @serhiy-storchaka, @jstasiak Files tempfile.patchtempfile_simplify.patchtempfile_wrap_methods...
X Description: BPO 18879 Nosy @birkenfeld, @ncoghlan, @pitrou, @vstinner, @bitdancer, @meadori, @socketpair, @vadmium, @serhiy-storchaka, @jstasiak Files tempfile.patchtempfile_simplify.patchtempfile_wrap_methods...
Opengraph URL: https://github.com/python/cpython/issues/63079
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable","articleBody":"BPO | [18879](https://bugs.python.org/issue18879)\n--- | :---\nNosy | @birkenfeld, @ncoghlan, @pitrou, @vstinner, @bitdancer, @meadori, @socketpair, @vadmium, @serhiy-storchaka, @jstasiak\nFiles | \u003cli\u003e[tempfile.patch](https://bugs.python.org/file31598/tempfile.patch \"Uploaded as text/plain at 2013-09-05.08:41:53 by @jstasiak\")\u003c/li\u003e\u003cli\u003e[tempfile_simplify.patch](https://bugs.python.org/file31603/tempfile_simplify.patch \"Uploaded as text/plain at 2013-09-05.12:03:24 by @serhiy-storchaka\")\u003c/li\u003e\u003cli\u003e[tempfile_wrap_methods.patch](https://bugs.python.org/file33153/tempfile_wrap_methods.patch \"Uploaded as text/plain at 2013-12-15.21:09:47 by @serhiy-storchaka\")\u003c/li\u003e\u003cli\u003e[tempfile_lifetime.patch](https://bugs.python.org/file33252/tempfile_lifetime.patch \"Uploaded as text/plain at 2013-12-21.20:41:31 by @pitrou\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/pitrou'\nclosed_at = \u003cDate 2013-12-21.21:21:12.772\u003e\ncreated_at = \u003cDate 2013-08-29.20:25:43.325\u003e\nlabels = ['type-bug', 'library', 'expert-IO']\ntitle = 'tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable'\nupdated_at = \u003cDate 2014-05-26.06:27:57.890\u003e\nuser = 'https://bugs.python.org/jortbloem'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2014-05-26.06:27:57.890\u003e\nactor = 'socketpair'\nassignee = 'pitrou'\nclosed = True\nclosed_date = \u003cDate 2013-12-21.21:21:12.772\u003e\ncloser = 'pitrou'\ncomponents = ['Library (Lib)', 'IO']\ncreation = \u003cDate 2013-08-29.20:25:43.325\u003e\ncreator = 'jort.bloem'\ndependencies = []\nfiles = ['31598', '31603', '33153', '33252']\nhgrepos = []\nissue_num = 18879\nkeywords = ['patch']\nmessage_count = 22.0\nmessages = ['196485', '196496', '196501', '196504', '196507', '196952', '196985', '196991', '196992', '197016', '197019', '204723', '206257', '206258', '206554', '206776', '206778', '206780', '206781', '206782', '216506', '219138']\nnosy_count = 15.0\nnosy_names = ['georg.brandl', 'ncoghlan', 'ctheune', 'pitrou', 'vstinner', 'Arfrever', 'r.david.murray', 'meador.inge', 'socketpair', 'python-dev', 'martin.panter', 'serhiy.storchaka', 'jort.bloem', 'Zden\\xc4\\x9bk.Pavlas', 'jstasiak']\npr_nums = []\npriority = 'normal'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue18879'\nversions = ['Python 2.7', 'Python 3.4', 'Python 3.5']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/jortbloem","@type":"Person","name":"jortbloem"},"datePublished":"2013-08-29T20:25:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/63079/cpython/issues/63079"}
| 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:3d3a641a-87da-ce22-4de5-20f8957cf9bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AA4:1EEE:4EB335:728396:6A4F7172 |
| html-safe-nonce | b104aba7e857ef4f1398ed71847ad1565af9dc28ade791ff0c34c21a9392f3ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUE0OjFFRUU6NEVCMzM1OjcyODM5Njo2QTRGNzE3MiIsInZpc2l0b3JfaWQiOiI1NzkzNjY4ODA2ODQ1ODg2ODM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 296e862b1f64381330ddf3b519665396f7d42b5949a40f15c76842b5c0b2afd0 |
| hovercard-subject-tag | issue:1198904443 |
| 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/python/cpython/63079/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6dce9dd58226c07560bdef343137cd18a3365761566815ff6c0b5b4183635aa/python/cpython/issues/63079 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6dce9dd58226c07560bdef343137cd18a3365761566815ff6c0b5b4183635aa/python/cpython/issues/63079 |
| og:image:alt | BPO 18879 Nosy @birkenfeld, @ncoghlan, @pitrou, @vstinner, @bitdancer, @meadori, @socketpair, @vadmium, @serhiy-storchaka, @jstasiak Files tempfile.patchtempfile_simplify.patchtempfile_wrap_methods... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jortbloem |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width