GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enum __repr__ string could be improved · Issue #2238 · pythonnet/pythonnet

Enum __repr__ string could be improved #2238

New issue
Copy link
New issue
Copy link
Closed
#2239
Closed
Enum __repr__ string could be improved#2238
#2239
Copy link

Description

@koubaa
koubaa
opened on Sep 18, 2023
Issue body actions

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 enum value with repr. This is how IronPython seems to do things:

IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.42000 (64-bit)
Type "help", "copyright", "credits" or "license" for more information.

import System
System.DayOfWeek.Monday
System.DayOfWeek.Monday

Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import clr; import System
System.DayOfWeek.Monday
<System.DayOfWeek object at 0x0000024D5BAC7300>

Activity

  1. lostmsu
    closed this as completedin #2239on Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.