Title: fcntl.ioctl() regression: mutate_flag now mandatory for read-only buffer · Issue #3881 · python/typeshed · GitHub
Open Graph Title: fcntl.ioctl() regression: mutate_flag now mandatory for read-only buffer · Issue #3881 · python/typeshed
X Title: fcntl.ioctl() regression: mutate_flag now mandatory for read-only buffer · Issue #3881 · python/typeshed
Description: #3680 now mandates the presence of a boolean mutate_flag in case of an read-only bytes buffer for the argument, which seems wrong, it should be optional (it does not do anything). This breaks code like this: buf = fcntl.ioctl(fileno, ter...
Open Graph Description: #3680 now mandates the presence of a boolean mutate_flag in case of an read-only bytes buffer for the argument, which seems wrong, it should be optional (it does not do anything). This breaks code ...
X Description: #3680 now mandates the presence of a boolean mutate_flag in case of an read-only bytes buffer for the argument, which seems wrong, it should be optional (it does not do anything). This breaks code ...
Opengraph URL: https://github.com/python/typeshed/issues/3881
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fcntl.ioctl() regression: mutate_flag now mandatory for read-only buffer","articleBody":"#3680 now mandates the presence of a boolean mutate_flag in case of an read-only bytes buffer for the argument, which seems wrong, it should be optional (it does not do anything).\r\n\r\nThis breaks code like this:\r\n\r\n```buf = fcntl.ioctl(fileno, termios.TIOCGWINSZ, 8 * b' ')```\r\n\r\nwhich now pointlessly needs to be written as\r\n\r\n```buf = fcntl.ioctl(fileno, termios.TIOCGWINSZ, 8 * b' ', False)```\r\n\r\nor reworked to use a bytearray.","author":{"url":"https://github.com/julian-klode","@type":"Person","name":"julian-klode"},"datePublished":"2020-03-24T11:30:41Z","url":"https://github.com/python/typeshed/issues/3881"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7d7990cf-6025-2153-4775-d497f7766bb1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A806:34D604:1F6F358:2984546:6B00441A |
| html-safe-nonce | 9f90bb05dad1f83346013ae4986f4b17c1a2ef13101d4e84ddc7b48844081fa2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODA2OjM0RDYwNDoxRjZGMzU4OjI5ODQ1NDY6NkIwMDQ0MUEiLCJ2aXNpdG9yX2lkIjoiNTI1NjYxOTM1MzA2Njk4MDM3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6404d052ccaec3e60fcc2eeb06f1920bdbc0a5335fc22007cefd7924885a278a |
| hovercard-subject-tag | issue:586891482 |
| 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/typeshed/3881/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20a5a9f12c5d589468e7639c5d5b1a614c1d4d8f8bf5247ddc5c70c9ced73dab/python/typeshed/issues/3881 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20a5a9f12c5d589468e7639c5d5b1a614c1d4d8f8bf5247ddc5c70c9ced73dab/python/typeshed/issues/3881 |
| og:image:alt | #3680 now mandates the presence of a boolean mutate_flag in case of an read-only bytes buffer for the argument, which seems wrong, it should be optional (it does not do anything). This breaks code ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | julian-klode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width