lordmauve/pgzero

Add __repr__ to built-in objects

Open

#100 geöffnet am 29. Juli 2018

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (185 Forks)batch import
enhancementgood first issue

Repository-Metriken

Stars
 (472 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide