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.

贡献者指南