Title: Enum __repr__ string could be improved · Issue #2238 · pythonnet/pythonnet · GitHub
Open Graph Title: Enum __repr__ string could be improved · Issue #2238 · pythonnet/pythonnet
X Title: Enum __repr__ string could be improved · Issue #2238 · pythonnet/pythonnet
Description: Environment Pythonnet version: 3.1.0 Python version: 3.11 Operating System: Windows .NET Runtime: .NET FW Details Many .NET APIs use enum values as method return types or properties. In an interactive shell, it may be useful to see the e...
Open Graph Description: Environment Pythonnet version: 3.1.0 Python version: 3.11 Operating System: Windows .NET Runtime: .NET FW Details Many .NET APIs use enum values as method return types or properties. In an interact...
X Description: Environment Pythonnet version: 3.1.0 Python version: 3.11 Operating System: Windows .NET Runtime: .NET FW Details Many .NET APIs use enum values as method return types or properties. In an interact...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2238
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enum __repr__ string could be improved","articleBody":"### Environment\r\n\r\n- Pythonnet version: 3.1.0\r\n- Python version: 3.11\r\n- Operating System: Windows\r\n- .NET Runtime: .NET FW\r\n\r\n### Details\r\n\r\n- Many .NET APIs use enum values as method return types or properties. In an interactive shell, it may be useful to see the enum value with `repr`. This is how IronPython seems to do things:\r\n\r\n**IronPython 2.7.4** (2.7.0.40) on .NET 4.0.30319.42000 (64-bit)\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import System\r\n\u003e\u003e\u003e System.DayOfWeek.Monday\r\nSystem.DayOfWeek.Monday\r\n\r\n**Python 3.11.4** (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import clr; import System\r\n\u003e\u003e\u003e System.DayOfWeek.Monday\r\n\u003cSystem.DayOfWeek object at 0x0000024D5BAC7300\u003e\r\n","author":{"url":"https://github.com/koubaa","@type":"Person","name":"koubaa"},"datePublished":"2023-09-18T12:54:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2238/pythonnet/issues/2238"}
| 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:1dbde65a-e499-f0a1-1fb0-216029f49664 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4A6:113351:18867BB:2122FB1:69733E51 |
| html-safe-nonce | e309b47a93376a2ddb6403b22f562b8df08a8e34f1530a7e04ee0cb48083d9dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEE2OjExMzM1MToxODg2N0JCOjIxMjJGQjE6Njk3MzNFNTEiLCJ2aXNpdG9yX2lkIjoiODY4NTM5MzkxNDExOTc5ODM1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 251ef15463b4b1daa98b986a3b0eed327a5fcf83a328d1150e6b34dc490b2370 |
| hovercard-subject-tag | issue:1900876999 |
| 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/2238/issue_layout |
| twitter:image | https://opengraph.githubassets.com/794f8c8c9876ae8179828c91cb5b577b36ff1e62e0620bd5a4f8f777c16d820b/pythonnet/pythonnet/issues/2238 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/794f8c8c9876ae8179828c91cb5b577b36ff1e62e0620bd5a4f8f777c16d820b/pythonnet/pythonnet/issues/2238 |
| og:image:alt | Environment Pythonnet version: 3.1.0 Python version: 3.11 Operating System: Windows .NET Runtime: .NET FW Details Many .NET APIs use enum values as method return types or properties. In an interact... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | koubaa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| 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 | 75e56b01124e79ebbaa7864231f25e58fc1b5f25 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width