lordmauve/pgzero

Add __repr__ to built-in objects

Open

#100 aberto em 29 de jul. de 2018

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Python (185 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (472 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Having added a REPL (in #80), Pygame Zero's built-in objects can now be explored in the REPL. However, they do not generally have a defined __repr__.

For example,

>>> screen
<pgzero.screen.Screen object at 0x7fe27cb29208>

>>> keyboard
<pgzero.keyboard.Keyboard object at 0x7fe285085160>

Implementing this would make these more usable in the REPL.

Guia do colaborador