lordmauve/pgzero

Add __dir__() to built-in objects

オープン

#101 opened on 2018/07/29

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Python (211 件のフォーク)batch import
enhancementgood first issue

Repository metrics

Stars
 (608 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド