Title: Higher compatibility of the clr module with IronPython · Issue #437 · pythonnet/pythonnet · GitHub
Open Graph Title: Higher compatibility of the clr module with IronPython · Issue #437 · pythonnet/pythonnet
X Title: Higher compatibility of the clr module with IronPython · Issue #437 · pythonnet/pythonnet
Description: I think it would be a good idea to put some work into making the clr module we provide as (backwards?) compatible with IronPython as possible. This is the implementation: https://github.com/IronLanguages/main/blob/master/Languages/IronPy...
Open Graph Description: I think it would be a good idea to put some work into making the clr module we provide as (backwards?) compatible with IronPython as possible. This is the implementation: https://github.com/IronLan...
X Description: I think it would be a good idea to put some work into making the clr module we provide as (backwards?) compatible with IronPython as possible. This is the implementation: https://github.com/IronLan...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Higher compatibility of the clr module with IronPython","articleBody":"I think it would be a good idea to put some work into making the `clr` module we provide as (backwards?) compatible with IronPython as possible.\r\n\r\nThis is the implementation: https://github.com/IronLanguages/main/blob/master/Languages/IronPython/IronPython/Runtime/ClrModule.cs\r\n\r\nThese are the public members\r\n\r\n- [ ] Field `bool IsNetStandard`\r\n- [ ] Methods `AddReference{,ToFile,ToFileAndPath,ByName,ByPartialName}`\r\n- [ ] Methods `LoadAssembly{FromFileWithPath,FromFile,ByPartialName,ByName}`\r\n- [ ] Methods `Use` (essentially a \"generic\" `import`, we could map it directly to that)\r\n- [ ] Methods `GetString` (decode .NET byte arrays as Latin1)\r\n- [ ] Methods `GetBytes` (encode a .NET string as a byte array in Latin1)\r\n- [ ] Method `SetCommandDispatcher` (likely not applicable)\r\n- [ ] Methods `ImportExtensions` (already requested by yours truly in #55)\r\n- [ ] COM-related functions `LoadTypeLibrary`, `AddReferenceToTypeLibrary`, `PublishTypeLibDesc`\r\n- [x] Method `GetClrType` (#433)\r\n- [ ] Method `GetPythonType` (takes a .NET `Type` object and returns the corresponding wrapped Python type)\r\n- [ ] Method `GetDynamicType` (obsoleted, same as `GetPythonType`)\r\n- [ ] Types `Reference` and `StrongBox` (#226)\r\n- [ ] Decorator `accepts` (checks the argument types supplied to the decorated function, should be implementable in pure Python)\r\n- [ ] Decorator `returns` (validates the result type of a function, also easy in Python)\r\n- [ ] Method `Self` (always returns `null`?!)\r\n- [ ] Methods `Dir` and `DirClr` (can both be mapped to `dir` in our case, I guess)\r\n- [ ] Method `Convert` (tries to convert the object to the passed type by casting explicitly #611 )\r\n- [ ] Methods `Compile{Modules,SubclassTypes}` (not applicable in our case)\r\n- [ ] Method `GetSubclassedTypes` (returns a tuple of all types that have been subclassed, does not make sense in CPython)\r\n\r\nWe could add stubs for all of these, raising `NotImplementedError` and port over everything that is simple or makes sense to us.","author":{"url":"https://github.com/filmor","@type":"Person","name":"filmor"},"datePublished":"2017-03-22T23:59:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/437/pythonnet/issues/437"}
| 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:9f07eeea-b4e8-171f-1fd6-b6c3770e7ff2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C570:2CECE6:1CD9237:2867C29:6970E672 |
| html-safe-nonce | 8940319d70b4383a08d15a2d259f44ae33fab88208ba8fc214ce326eabb4ef53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTcwOjJDRUNFNjoxQ0Q5MjM3OjI4NjdDMjk6Njk3MEU2NzIiLCJ2aXNpdG9yX2lkIjoiNzk0ODM0NDIxMDA2NDcyOTcxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 961d314a6968eee3db671613023640bbe39ea073c870dae3293fbbe48c979e5a |
| hovercard-subject-tag | issue:216243796 |
| 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/437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb6665a9a2b4af336b12c64574562efd99135424e9f03cd2560d64edd0081b73/pythonnet/pythonnet/issues/437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb6665a9a2b4af336b12c64574562efd99135424e9f03cd2560d64edd0081b73/pythonnet/pythonnet/issues/437 |
| og:image:alt | I think it would be a good idea to put some work into making the clr module we provide as (backwards?) compatible with IronPython as possible. This is the implementation: https://github.com/IronLan... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | filmor |
| hostname | github.com |
| expected-hostname | github.com |
| None | a8b3a33ad16bd33428ccc7800d4ea7bfc6b4990584847afdcb92b020b61a949b |
| 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 | b8a8c883a585a3dc6cb57fa8b7997b70c86a696c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width