Title: Handle non-iterables for `ntpath.commonpath` · Issue #117335 · python/cpython · GitHub
Open Graph Title: Handle non-iterables for `ntpath.commonpath` · Issue #117335 · python/cpython
X Title: Handle non-iterables for `ntpath.commonpath` · Issue #117335 · python/cpython
Description: Bug report Bug description: >>> import ntpath >>> ntpath.commonpath(None) Traceback (most recent call last): File "
Open Graph Description: Bug report Bug description: >>> import ntpath >>> ntpath.commonpath(None) Traceback (most recent call last): File "
X Description: Bug report Bug description: >>> import ntpath >>> ntpath.commonpath(None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "&...
Opengraph URL: https://github.com/python/cpython/issues/117335
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle non-iterables for `ntpath.commonpath`","articleBody":"# Bug report\n\n### Bug description:\n\n```python\n\u003e\u003e\u003e import ntpath\n\u003e\u003e\u003e ntpath.commonpath(None)\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"\u003cfrozen ntpath\u003e\", line 826, in commonpath\nValueError: commonpath() arg is an empty sequence\n```\n\nExpected: `TypeError: 'NoneType' object is not iterable` like for `posixpath.commonpath`.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-117336\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/nineteendo","@type":"Person","name":"nineteendo"},"datePublished":"2024-03-28T19:04:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/117335/cpython/issues/117335"}
| 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:85e670aa-825c-8560-1467-8d6e47be10ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7A2:2B644A:773CA0:9C1AC5:696B4CD8 |
| html-safe-nonce | 320d13fd89085d35bf1662ac0035a2309ae5e9b504b4b3088bb674e9ec032910 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0EyOjJCNjQ0QTo3NzNDQTA6OUMxQUM1OjY5NkI0Q0Q4IiwidmlzaXRvcl9pZCI6IjYyNTE3MTkyMzQ5Mjg5ODczNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2d22359f53493035f307d1bb8c6b5587099514aa08a064044baf022344aebc41 |
| hovercard-subject-tag | issue:2213931468 |
| 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/117335/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d42e729b8bb6bce0047105d3d942b777fcd8e59f35eb0277dc7f917b2c7c988/python/cpython/issues/117335 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d42e729b8bb6bce0047105d3d942b777fcd8e59f35eb0277dc7f917b2c7c988/python/cpython/issues/117335 |
| og:image:alt | Bug report Bug description: >>> import ntpath >>> ntpath.commonpath(None) Traceback (most recent call last): File " |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nineteendo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width