Title: Exceptions and arguments disappear when using argparse inside with statement · Issue #68258 · python/cpython · GitHub
Open Graph Title: Exceptions and arguments disappear when using argparse inside with statement · Issue #68258 · python/cpython
X Title: Exceptions and arguments disappear when using argparse inside with statement · Issue #68258 · python/cpython
Description: BPO 24070 Nosy @benjaminp, @bitdancer Dependencies bpo-9938: Add optional keyword argument exit_on_error to argparse.ArgumentParser Files argparse-with-exception.py Note: these values reflect the state of the issue at the time it was mig...
Open Graph Description: BPO 24070 Nosy @benjaminp, @bitdancer Dependencies bpo-9938: Add optional keyword argument exit_on_error to argparse.ArgumentParser Files argparse-with-exception.py Note: these values reflect the s...
X Description: BPO 24070 Nosy @benjaminp, @bitdancer Dependencies bpo-9938: Add optional keyword argument exit_on_error to argparse.ArgumentParser Files argparse-with-exception.py Note: these values reflect the s...
Opengraph URL: https://github.com/python/cpython/issues/68258
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exceptions and arguments disappear when using argparse inside with statement","articleBody":"BPO | [24070](https://bugs.python.org/issue24070)\n--- | :---\nNosy | @benjaminp, @bitdancer\nDependencies | \u003cli\u003ebpo-9938: Add optional keyword argument exit_on_error to argparse.ArgumentParser\u003c/li\u003e\nFiles | \u003cli\u003e[argparse-with-exception.py](https://bugs.python.org/file39227/argparse-with-exception.py \"Uploaded as text/plain at 2015-04-28.17:57:25 by invisibleroads\")\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 = None\nclosed_at = \u003cDate 2015-04-28.18:29:16.040\u003e\ncreated_at = \u003cDate 2015-04-28.17:57:25.650\u003e\nlabels = ['type-bug', 'library']\ntitle = 'Exceptions and arguments disappear when using argparse inside with statement'\nupdated_at = \u003cDate 2015-05-06.17:52:11.294\u003e\nuser = 'https://bugs.python.org/invisibleroads'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2015-05-06.17:52:11.294\u003e\nactor = 'r.david.murray'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2015-04-28.18:29:16.040\u003e\ncloser = 'benjamin.peterson'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2015-04-28.17:57:25.650\u003e\ncreator = 'invisibleroads'\ndependencies = ['9938']\nfiles = ['39227']\nhgrepos = []\nissue_num = 24070\nkeywords = []\nmessage_count = 4.0\nmessages = ['242192', '242196', '242692', '242693']\nnosy_count = 3.0\nnosy_names = ['benjamin.peterson', 'invisibleroads', 'r.david.murray']\npr_nums = []\npriority = 'normal'\nresolution = 'duplicate'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue24070'\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/invisibleroads","@type":"Person","name":"invisibleroads"},"datePublished":"2015-04-28T17:57:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/68258/cpython/issues/68258"}
| 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:f7ac4928-31a3-d960-54bf-eae4b4a0ba0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86EE:200334:34234:46F66:6A50F016 |
| html-safe-nonce | a7a8c3bcc3f2a1c82265b64322abdcbe3aec6f948a7df62d3236c5695740f482 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkVFOjIwMDMzNDozNDIzNDo0NkY2Njo2QTUwRjAxNiIsInZpc2l0b3JfaWQiOiI4MTkxMjU3MzI5NzI5MDczMTc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 071b146eb0a5bf704e432c883fb954af420cea171285859c84b6e39a9ff5ddc1 |
| hovercard-subject-tag | issue:1198934664 |
| 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/68258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2d7a278fe5e3098a665b65e2ed17f7690f5085639d040562e630ac4d61fe4f2/python/cpython/issues/68258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2d7a278fe5e3098a665b65e2ed17f7690f5085639d040562e630ac4d61fe4f2/python/cpython/issues/68258 |
| og:image:alt | BPO 24070 Nosy @benjaminp, @bitdancer Dependencies bpo-9938: Add optional keyword argument exit_on_error to argparse.ArgumentParser Files argparse-with-exception.py Note: these values reflect the s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | invisibleroads |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| 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 | 5ec60191a48933536a90c8a19f47142fcd0d4739 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width