pybind/pybind11

There can be only one (enum instance)

Open

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

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

倉庫指標

Star
 (14,677 star)
PR 合併指標
 (平均合併 5天 2小時) (30 天內合併 10 個 PR)

描述

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

貢獻者指南