lordmauve/pgzero

Add __dir__() to built-in objects

Open

#101 创建于 2018年7月29日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Python (185 fork)batch import
enhancementgood first issue

仓库指标

Star
 (472 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

The REPL added in #80 has built-in autocompletion:

autocompletion

However various built-in objects do not take full advantage of this:

  • Actor does not have autocompletion for attributes delegated to the ZRect
  • Loaders do not have autocompletion for the objects that can be loaded
  • more?

We should implement __dir__() on these classes and others to ensure that autocompletion lists all valid attributes.

贡献者指南