Title: gh-96288: Add a sentence to `os.mkdir`'s docstring. by hagai-helman · Pull Request #96271 · python/cpython · GitHub
Open Graph Title: gh-96288: Add a sentence to `os.mkdir`'s docstring. by hagai-helman · Pull Request #96271 · python/cpython
X Title: gh-96288: Add a sentence to `os.mkdir`'s docstring. by hagai-helman · Pull Request #96271 · python/cpython
Description: A clarification about the use of umask (copied from the os module documentation) is added to the docstring of os.mkdir. The behavior described may be unexpected for some (for example, this is not the behavior of GNU's mkdir command - when a mode is explicitly given to it, it overrides the umask). When one is unaware of this behavior, it can lead to bugs that are difficult to notice or trace. For these two reasons, I suggest it is mentioned in the docstring. Issue: gh-96288
Open Graph Description: A clarification about the use of umask (copied from the os module documentation) is added to the docstring of os.mkdir. The behavior described may be unexpected for some (for example, this is not t...
X Description: A clarification about the use of umask (copied from the os module documentation) is added to the docstring of os.mkdir. The behavior described may be unexpected for some (for example, this is not t...
Opengraph URL: https://github.com/python/cpython/pull/96271
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:19a94a39-6005-4bdb-c452-706bbdd28f59 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C618:2004F6:119DC4C:1799E96:6969A9FA |
| html-safe-nonce | ae8fb0b5060b1ffd077a6edf6c830c62324191f8ac37ffe60fe47a9f2e2e9329 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjE4OjIwMDRGNjoxMTlEQzRDOjE3OTlFOTY6Njk2OUE5RkEiLCJ2aXNpdG9yX2lkIjoiMzE2ODQ3Nzg1OTQxOTg5MjIxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 08a369223c4a0faa44918a09fc7c1087f3599acbad780cffa7865af83d3eddcc |
| hovercard-subject-tag | pull_request:1036901879 |
| 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/python/cpython/pull/96271/files |
| twitter:image | https://avatars.githubusercontent.com/u/25120494?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/25120494?s=400&v=4 |
| og:image:alt | A clarification about the use of umask (copied from the os module documentation) is added to the docstring of os.mkdir. The behavior described may be unexpected for some (for example, this is not t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width