Title: Reworked Enum marshaling by lostmsu · Pull Request #1392 · pythonnet/pythonnet · GitHub
Open Graph Title: Reworked Enum marshaling by lostmsu · Pull Request #1392 · pythonnet/pythonnet
X Title: Reworked Enum marshaling by lostmsu · Pull Request #1392 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. enums are no longer converted to and from PyLong automatically #1220 one can construct an instance of MyEnum from Python using MyEnum(numeric_val), e.g. MyEnum(10) in the above, if MyEnum does not have [Flags] and does not have member with value 10 defined, to create MyEnum with value 10 one must call MyEnum(10, True). Here True is an unnamed parameter, that allows unchecked conversion legacy behavior has been moved to a codec: EnumPyLongCodec; enums can now be encoded by codecs added EnumOps class, that implements bitwise operations on [Flags] enums. Does this close any currently open issues? #1220 Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. enums are no longer converted to and from PyLong automatically #1220 one can construct an instance of MyEnum from Python using MyEnum(numeric_va...
X Description: What does this implement/fix? Explain your changes. enums are no longer converted to and from PyLong automatically #1220 one can construct an instance of MyEnum from Python using MyEnum(numeric_va...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1392
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:9dcfe040-3f25-0284-fb3e-55a1a786f8e5 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8E18:348DF0:3063AC8:4134003:697085C2 |
| html-safe-nonce | 5ef1c1246d3192da27068ab33a6d9a3711765eb9f996660d3bdce7f1a4f10789 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTE4OjM0OERGMDozMDYzQUM4OjQxMzQwMDM6Njk3MDg1QzIiLCJ2aXNpdG9yX2lkIjoiODY3MDA4MTcxMTQ2NDI4NTYzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a4b40cbe4f3a41d5532f695fe33805d605025830364fc5a557b482dfce2d1d0f |
| hovercard-subject-tag | pull_request:577016881 |
| 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/1392/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 | What does this implement/fix? Explain your changes. enums are no longer converted to and from PyLong automatically #1220 one can construct an instance of MyEnum from Python using MyEnum(numeric_va... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width