Title: Type name cannot contain surrogates · Issue #4786 · RustPython/RustPython · GitHub
Open Graph Title: Type name cannot contain surrogates · Issue #4786 · RustPython/RustPython
X Title: Type name cannot contain surrogates · Issue #4786 · RustPython/RustPython
Description: Issue caught after an update to test_builtins in #4765. Creating a new type and supplying as a name a value that contains a surrogate (in this case \udcdc is used) should result in an error. RustPython: >>> type("A\udcdcB", (), {}) >>> <...
Open Graph Description: Issue caught after an update to test_builtins in #4765. Creating a new type and supplying as a name a value that contains a surrogate (in this case \udcdc is used) should result in an error. RustPy...
X Description: Issue caught after an update to test_builtins in #4765. Creating a new type and supplying as a name a value that contains a surrogate (in this case \udcdc is used) should result in an error. RustPy...
Opengraph URL: https://github.com/RustPython/RustPython/issues/4786
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type name cannot contain surrogates","articleBody":"Issue caught after an update to `test_builtins` in #4765. Creating a new type and supplying as a name a value that contains a surrogate (in this case `\\udcdc` is used) should result in an error.\r\n\r\nRustPython:\r\n\r\n```python\r\n>>> type(\"A\\udcdcB\", (), {})\r\n>>> \u003cclass '__main__.A�B'>\r\n```\r\n\r\nWhile in CPython:\r\n\r\n```python\r\n>>> type(\"A\\udcdcB\", (), {})\r\nTraceback (most recent call last):\r\n File \"\u003cstdin>\", line 1, in \u003cmodule>\r\nUnicodeEncodeError: 'utf-8' codec can't encode character '\\udcdc' in position 1: surrogates not allowed\r\n```\r\n","author":{"url":"https://github.com/DimitrisJim","@type":"Person","name":"DimitrisJim"},"datePublished":"2023-03-27T19:40:05Z","url":"https://github.com/RustPython/RustPython/issues/4786"}
| 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:1ed98031-ff15-528f-e6d5-1371920f26ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88D6:2714DE:23C9574:3077010:6B00271C |
| html-safe-nonce | 0fbfb19e9e2b1847e14e69afed6dc8455ad006fe17439ab2310522bf03475d98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEQ2OjI3MTRERToyM0M5NTc0OjMwNzcwMTA6NkIwMDI3MUMiLCJ2aXNpdG9yX2lkIjoiMjk5ODY2MDA1ODA2MzA1NDYyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50f7c10b998410dc092a6413b1b940e9816d15658e81e66e2c16035fe1908869 |
| hovercard-subject-tag | issue:1642702255 |
| 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/RustPython/RustPython/4786/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c9852731527183ca6449be78642d56a1d2a6a421f2d2d96b678b5e5ef0c4995/RustPython/RustPython/issues/4786 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c9852731527183ca6449be78642d56a1d2a6a421f2d2d96b678b5e5ef0c4995/RustPython/RustPython/issues/4786 |
| og:image:alt | Issue caught after an update to test_builtins in #4765. Creating a new type and supplying as a name a value that contains a surrogate (in this case \udcdc is used) should result in an error. RustPy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DimitrisJim |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width