Title: Using String.Format crashes inside pythonnet · Issue #1642 · pythonnet/pythonnet · GitHub
Open Graph Title: Using String.Format crashes inside pythonnet · Issue #1642 · pythonnet/pythonnet
X Title: Using String.Format crashes inside pythonnet · Issue #1642 · pythonnet/pythonnet
Description: Environment Pythonnet version: 3.x Python version: 3.8.10 Operating System: Windows 11 64bit .NET Runtime: net6.0 Details How to reproduce(with project Console.vsproj): @filmor PythonEngine.Initialize(); PythonEngine.Exec("from System im...
Open Graph Description: Environment Pythonnet version: 3.x Python version: 3.8.10 Operating System: Windows 11 64bit .NET Runtime: net6.0 Details How to reproduce(with project Console.vsproj): @filmor PythonEngine.Initial...
X Description: Environment Pythonnet version: 3.x Python version: 3.8.10 Operating System: Windows 11 64bit .NET Runtime: net6.0 Details How to reproduce(with project Console.vsproj): @filmor PythonEngine.Initial...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1642
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using String.Format crashes inside pythonnet","articleBody":"### Environment\r\n\r\n- Pythonnet version: 3.x\r\n- Python version: 3.8.10\r\n- Operating System: Windows 11 64bit\r\n- .NET Runtime: net6.0\r\n### Details\r\nHow to reproduce(with project Console.vsproj): @filmor \r\n\r\n```string[] cmd = Environment.GetCommandLineArgs();\r\nPythonEngine.Initialize();\r\nPythonEngine.Exec(\"from System import String\\nString.Format('{0},{1}', 1, 2)\"); // crashes here\r\nint i = Runtime.Py_Main(cmd.Length, cmd);\r\nPythonEngine.Shutdown();","author":{"url":"https://github.com/sekkit","@type":"Person","name":"sekkit"},"datePublished":"2021-12-21T17:00:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/1642/pythonnet/issues/1642"}
| 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:082e4d2b-8a68-688e-749e-fbfd8f1eb913 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC3A:3DFBD6:1D393C7:28C6701:696FE429 |
| html-safe-nonce | 09eab5f57fa8d5a917a94ff4d93f91dc4b0fac4e100b6915745e55c484d39169 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzNBOjNERkJENjoxRDM5M0M3OjI4QzY3MDE6Njk2RkU0MjkiLCJ2aXNpdG9yX2lkIjoiNTY1MDY2NTgwOTEyNjYxNDA1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cbd6288e09142ac8817718837a2eda42674d9aecec6ea38bd4f925761728d28e |
| hovercard-subject-tag | issue:1086035655 |
| 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/pythonnet/pythonnet/1642/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e94c736084194f653857dcc2069eb9db00769ec343a7e6bc2f0b3a1b8261e68b/pythonnet/pythonnet/issues/1642 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e94c736084194f653857dcc2069eb9db00769ec343a7e6bc2f0b3a1b8261e68b/pythonnet/pythonnet/issues/1642 |
| og:image:alt | Environment Pythonnet version: 3.x Python version: 3.8.10 Operating System: Windows 11 64bit .NET Runtime: net6.0 Details How to reproduce(with project Console.vsproj): @filmor PythonEngine.Initial... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sekkit |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb7c872aa74896d911608183f4997f8b9c121a1624064705ec4570cd91bd7839 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | 257e1b418957178bd3ac9f7520608a40ebbb0f1e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width