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.

贡献者指南