vmware/pyvmomi

pyVmomi should never extend base or core types

Open

#69 创建于 2014年6月26日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (807 fork)batch import
bughelp wantedhigh priority

仓库指标

Star
 (2,141 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

This VmomiSupport.py#L179 is considered extremely bad form in the Python community. Extension of core types ties the code to interpreter internals that may not be intended for exposure. This is akin to using a hidden API and should be avoided or at least isolated so that potential damage is easier to control.

Rewrite the code so that the class Link is not needed anymore or so that Link can operate without directly extending a core type.

贡献者指南