Hi all,

A bit of an issue came about in the PR: If you define an enum class
which inherits `str`, there's  an ambiguity when asking for its string
representation (that is, explicit conversion to `str`) -- between it
simply being a `str`, and Enum's `__str__()` which returns
`Type.NAME'.

The ambiguity is only where str-based enums are concerned.

I believe my comment linked below summarises the discussion well, but
others may (of course) disagree.

https://github.com/django/django/pull/11223#issuecomment-496113943

Anyway, input welcome,

        Shai.


-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/20190527105556.299e9d3e.shai%40platonix.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to