Title: ImportHook cleanup + PyObject.Length exception by lostmsu · Pull Request #1400 · pythonnet/pythonnet · GitHub
Open Graph Title: ImportHook cleanup + PyObject.Length exception by lostmsu · Pull Request #1400 · pythonnet/pythonnet
X Title: ImportHook cleanup + PyObject.Length exception by lostmsu · Pull Request #1400 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. Import adds validation to PyImportTest before restoring original __import__, validates, that __import__ was not replaced by a third party (only in DEBUG build) drops unsupported _PyObject_GetDictPtr in favor of PyObject_GenericGetDict PyObject Length() method now raises an exception when object does not support concept of length (was returning 0).
Open Graph Description: What does this implement/fix? Explain your changes. Import adds validation to PyImportTest before restoring original __import__, validates, that __import__ was not replaced by a third party (only ...
X Description: What does this implement/fix? Explain your changes. Import adds validation to PyImportTest before restoring original __import__, validates, that __import__ was not replaced by a third party (only ...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1400
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4cee733d-c715-4ca7-815b-bbf3e973b013 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A46E:C8498:1B02E1B:25DBE35:6970DD6E |
| html-safe-nonce | 2be7cf02a6fbdfb41eb0d513a62ccd3dc898214dbf325744fb6dba8e21f05c6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDZFOkM4NDk4OjFCMDJFMUI6MjVEQkUzNTo2OTcwREQ2RSIsInZpc2l0b3JfaWQiOiIxNjU3MTI0OTU3MjUyMDE3NTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3e59a2ed139c1e654d6409048cc1239fdd515fe021fb230abc3ae0a5e149b781 |
| hovercard-subject-tag | pull_request:580492039 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/1400/files |
| 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 | What does this implement/fix? Explain your changes. Import adds validation to PyImportTest before restoring original __import__, validates, that __import__ was not replaced by a third party (only ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9203e7efc62065329c3b7015a1e6d16fc14bce440abec7b0d3cbe9e4fb1e2e4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eb3c92b74ae48a78cffd8700b8eb5f60bad61528 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width