lordmauve/pgzero

Add __repr__ to built-in objects

开放

#100 创建于 2018年7月29日

 (3 条评论) (0 个反应) (0 位负责人)Python (211 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (608 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南