Skip to content

bpo-34443: Change enum __repr__s and __str__s to use the fully qualified name#9011

Closed
orlnub123 wants to merge 3 commits into
python:masterfrom
orlnub123:enum-repr
Closed

bpo-34443: Change enum __repr__s and __str__s to use the fully qualified name#9011
orlnub123 wants to merge 3 commits into
python:masterfrom
orlnub123:enum-repr

Conversation

@orlnub123

@orlnub123 orlnub123 commented Aug 30, 2018

Copy link
Copy Markdown
Contributor

The reason I've also changed the __str__s is to keep consistency with the __repr__s. The datetime module also follows this practice.

https://bugs.python.org/issue34443

@orlnub123

Copy link
Copy Markdown
Contributor Author

I'll fix the tests tomorrow.

@danishprakash

Copy link
Copy Markdown
Contributor

@orlnub123 not sure why you would create a separate PR for the same issue.

#8989

@orlnub123

Copy link
Copy Markdown
Contributor Author

@prakashdanish I thought I'd create another one because it's doing something different.

@orlnub123

Copy link
Copy Markdown
Contributor Author

It looks like I got confused about the datetime thing. Now I'm questioning whether this is a good change or not.

@orlnub123 orlnub123 closed this Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants