pybind/pybind11

There can be only one (enum instance)

Open

#1,177 建立於 2017年11月9日

在 GitHub 查看
 (6 留言) (4 反應) (0 負責人)C++ (14,677 star) (2,005 fork)batch import
bugenhancementhelp wanted

描述

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

貢獻者指南

There can be only one (enum instance) · pybind/pybind11#1177 | Good First Issue