pybind/pybind11

There can be only one (enum instance)

Open

#1177 aperta il 9 nov 2017

Vedi su GitHub
 (6 commenti) (4 reazioni) (0 assegnatari)C++ (2005 fork)batch import
bugenhancementhelp wanted

Metriche repository

Star
 (14.677 star)
Metriche merge PR
 (Merge medio 5g 2h) (10 PR mergiate in 30 g)

Descrizione

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

Guida contributor