pybind/pybind11

There can be only one (enum instance)

Open

#1,177 opened on Nov 9, 2017

View on GitHub
 (6 comments) (4 reactions) (0 assignees)C++ (2,005 forks)batch import
bugenhancementhelp wanted

Repository metrics

Stars
 (14,677 stars)
PR merge metrics
 (Avg merge 5d 2h) (10 merged PRs in 30d)

Description

Currently enums compare equal with == but not with is. I think it would be good if enums would be singletons like None instead.

Contributor guide