lordmauve/pgzero

Add __repr__ to built-in objects

オープン

#100 opened on 2018/07/29

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

Repository metrics

Stars
 (608 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

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