Title: Fixed crash in ToArray when sequence explicitly denies __len__ by lostmsu · Pull Request #1484 · pythonnet/pythonnet · GitHub
Open Graph Title: Fixed crash in ToArray when sequence explicitly denies __len__ by lostmsu · Pull Request #1484 · pythonnet/pythonnet
X Title: Fixed crash in ToArray when sequence explicitly denies __len__ by lostmsu · Pull Request #1484 · pythonnet/pythonnet
Description: port of 8e1d4db What does this implement/fix? Explain your changes. Prevents crash on converting sequences to arrays when sequence lacks __len__. Sequence types might return error from PySequence_Size (like sequences provided by generators or types implemented in C, that lack sq_length slot or make it throw). This change adds handling for this case.
Open Graph Description: port of 8e1d4db What does this implement/fix? Explain your changes. Prevents crash on converting sequences to arrays when sequence lacks __len__. Sequence types might return error from PySequence_S...
X Description: port of 8e1d4db What does this implement/fix? Explain your changes. Prevents crash on converting sequences to arrays when sequence lacks __len__. Sequence types might return error from PySequence_S...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1484
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d92e764e-148a-269f-39b7-71a465a59034 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8E8A:12B7E9:BE4478:107AF66:6970BC5F |
| html-safe-nonce | d51a4371d0066ce55c8cafd7bd75aef95bcae324ea7cd92630dac26f786d3e88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RThBOjEyQjdFOTpCRTQ0Nzg6MTA3QUY2Njo2OTcwQkM1RiIsInZpc2l0b3JfaWQiOiIyMjM5NDYwMDA5MzQwNjE1Nzc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | be640d506a761e5ae7f19d3ce33277b9e5602d5aa570ff43e6bb92a7c704f89a |
| hovercard-subject-tag | pull_request:684767125 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/pythonnet/pythonnet/pull/1484/checks |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | port of 8e1d4db What does this implement/fix? Explain your changes. Prevents crash on converting sequences to arrays when sequence lacks __len__. Sequence types might return error from PySequence_S... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width