Title: support `str` type parameter in `plistlib.loads` · Issue #113537 · python/cpython · GitHub
Open Graph Title: support `str` type parameter in `plistlib.loads` · Issue #113537 · python/cpython
X Title: support `str` type parameter in `plistlib.loads` · Issue #113537 · python/cpython
Description: Feature or enhancement Proposal: The plistlib's loads function only accepts bytes as input. If the input format is XML against binary, it's normal to pass a XML content in str type in user codes. json.loads and tomllib.loads also accept ...
Open Graph Description: Feature or enhancement Proposal: The plistlib's loads function only accepts bytes as input. If the input format is XML against binary, it's normal to pass a XML content in str type in user codes. j...
X Description: Feature or enhancement Proposal: The plistlib's loads function only accepts bytes as input. If the input format is XML against binary, it's normal to pass a XML content in str type in user ...
Opengraph URL: https://github.com/python/cpython/issues/113537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"support `str` type parameter in `plistlib.loads`","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nThe `plistlib`'s [loads](https://docs.python.org/3/library/plistlib.html#plistlib.loads) function only accepts `bytes` as input. If the input format is XML against binary, it's normal to pass a XML content in `str` type in user codes. \n \n[json.loads](https://docs.python.org/3/library/json.html#json.loads) and [tomllib.loads](https://docs.python.org/3/library/tomllib.html#tomllib.loads) also accept `str` as input. \n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-113582\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/aisk","@type":"Person","name":"aisk"},"datePublished":"2023-12-28T10:02:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/113537/cpython/issues/113537"}
| 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:4483ef39-12de-a457-3691-861bf309647d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BB0:1BD3C:86724F:C2C458:6A4E13D2 |
| html-safe-nonce | f4e6299a1eb45d26bd778df8ac31b7bfc9eb27a6d67799f35c92ab4f5bf415f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkIwOjFCRDNDOjg2NzI0RjpDMkM0NTg6NkE0RTEzRDIiLCJ2aXNpdG9yX2lkIjoiNTg4ODI4MzExODE1MDc1MTE4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c71a3a530fd540e5b7e88684e08a3a0a33aa9f169aa63b8cb4e5810ca81388ee |
| hovercard-subject-tag | issue:2058241589 |
| 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/113537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/978e76d81cf1941e357a5c0a05fd36fa698d1f2f83653ee424d17879ef623f3e/python/cpython/issues/113537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/978e76d81cf1941e357a5c0a05fd36fa698d1f2f83653ee424d17879ef623f3e/python/cpython/issues/113537 |
| og:image:alt | Feature or enhancement Proposal: The plistlib's loads function only accepts bytes as input. If the input format is XML against binary, it's normal to pass a XML content in str type in user codes. j... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aisk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | ea9187571e3edc5f2780f750631138669441ca50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width