Title: `urllib.parse.urlparse` output named tuples description is wrong for Python 3.9 and 3.10 · Issue #91708 · python/cpython · GitHub
Open Graph Title: `urllib.parse.urlparse` output named tuples description is wrong for Python 3.9 and 3.10 · Issue #91708 · python/cpython
X Title: `urllib.parse.urlparse` output named tuples description is wrong for Python 3.9 and 3.10 · Issue #91708 · python/cpython
Description: The documentation for urllib.parse.urlparse states that: The return value is a named tuple, which means that its items can be accessed by index or as named attributes, which are: Attribute Index Value Value if not present ... params 3 No...
Open Graph Description: The documentation for urllib.parse.urlparse states that: The return value is a named tuple, which means that its items can be accessed by index or as named attributes, which are: Attribute Index Va...
X Description: The documentation for urllib.parse.urlparse states that: The return value is a named tuple, which means that its items can be accessed by index or as named attributes, which are: Attribute Index Va...
Opengraph URL: https://github.com/python/cpython/issues/91708
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`urllib.parse.urlparse` output named tuples description is wrong for Python 3.9 and 3.10","articleBody":"The documentation for `urllib.parse.urlparse` states that:\r\n\r\n\u003e The return value is a named tuple, which means that its items can be accessed by index or as named attributes, which are:\r\n\u003e \r\n\u003e Attribute | Index | Value | Value if not present\r\n\u003e -- | -- | -- | --\r\n\u003e ...\r\n\u003e params | 3 | No longer used | always an empty string\r\n\r\nHowever it seems that the documentation does not reflect reality:\r\n```\r\n\u003e\u003e\u003e \r\n\u003e\u003e\u003e import urllib.parse\r\n\u003e\u003e\u003e p = urllib.parse.urlparse('http://foo.test/test;param')\r\n\u003e\u003e\u003e p\r\nParseResult(scheme='http', netloc='foo.test', path='/test', params='param', query='', fragment='')\r\n\u003e\u003e\u003e p[3]\r\n'param'\r\n```\r\nand the returned named tuple has a populated `params` field.","author":{"url":"https://github.com/dnicolodi","@type":"Person","name":"dnicolodi"},"datePublished":"2022-04-19T21:44:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/91708/cpython/issues/91708"}
| 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:afd392a0-5077-0d14-5ac9-d6c77bf8e7be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CA8:2D5677:5B9518:7E94E4:69694CCD |
| html-safe-nonce | 9f0247e42aae61e479dd22789cc9f45fa5ee4dae58c7685d68882530762bbe79 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0E4OjJENTY3Nzo1Qjk1MTg6N0U5NEU0OjY5Njk0Q0NEIiwidmlzaXRvcl9pZCI6IjQwMDI5NTU0MTMzNjYwNjYzODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 20eba09bbac2651e7a37fec74c69c8fcfd1f6d80ecbe458a0b2c48cb9b7b14d6 |
| hovercard-subject-tag | issue:1208890786 |
| 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/91708/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c4ebc58b3658243fe44e7179cc93fb002f9231454075fe528dd05d0b9cf6072/python/cpython/issues/91708 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c4ebc58b3658243fe44e7179cc93fb002f9231454075fe528dd05d0b9cf6072/python/cpython/issues/91708 |
| og:image:alt | The documentation for urllib.parse.urlparse states that: The return value is a named tuple, which means that its items can be accessed by index or as named attributes, which are: Attribute Index Va... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dnicolodi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width