[Python-ideas] __repr__: to support pprint

Steven D'Aprano steve at pearwood.info
Tue Feb 28 19:50:35 EST 2017


On Wed, Mar 01, 2017 at 06:59:52AM +0800, 语言破碎处 wrote:

> solution:
> allow __repr__ to return
>     str
>     OR tuple: (args, kws)
>
> Better, isn't it?

No.

-- 
Steve


More information about the Python-ideas mailing list