Serhiy Storchaka wrote:
> The default repr of Python object is formatted using the following pattern:
> <{typename} object at {address:#x}>
>
> And many custom reprs use similar patterns, but add some additional type
> specific information. The type name first, followed by details and
> address
On Fri, May 29, 2020 at 11:02:56PM +0300, Serhiy Storchaka wrote:
> The default repr of Python object is formatted using the following pattern:
>
> <{typename} object at {address:#x}>
>
> And many custom reprs use similar patterns, but add some additional type
> specific information. The ty
If you are going to give details, you'd better use the "equivalent expression" kind of repr. As I explained earlier in the "Enum._convert
should change __repr__", the angle brackets repr doesn't actually give any information that the user can rely upon except the type and the
address.
On 29.05.
On 2020-05-29 21:02, Serhiy Storchaka wrote:
The default repr of Python object is formatted using the following pattern:
<{typename} object at {address:#x}>
And many custom reprs use similar patterns, but add some additional type
specific information. The type name first, followed by deta