lordmauve/pgzero

Add __dir__() to built-in objects

Aberta

#101 aberto em 29 de jul. de 2018

 (2 comentários) (0 reação) (0 responsável)Python (211 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (608 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador