You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/rhettinger'closed_at=<Date2021-09-22.20:46:31.194>created_at=<Date2020-02-04.01:07:30.074>labels= ['tests', 'type-bug', 'library', '3.9']
title='The reprlib.Repr type should permit the \xe2\x80\x9cfillvalue\xe2\x80\x9d to be set by the user'updated_at=<Date2021-09-22.20:46:31.194>user='https://github.com/fish2000'
Currently, the reprlib.recursive_repr(…) decorator allows a “fillvalue” parameter to be specified by the user. This is a string value that is used as a placeholder when calculating an objects’ repr – in the case of recursive_repr(…) the “fillvalue” defaults to '...' and may be set by the user to a string of any length.
There is no such user-defined “fillvalue” on the reprlib.Repr type, although the '...' string is hardcoded in its implementation and used throughout.
I propose that the hardcoded use of the '...' string in the code for the reprlib.Repr implementation should be replaced by a “fillvalue” attribute, set on the class in its __init__(…) method – and therefore overridable in subclasses, like the existing myriad “max*” instance attributes.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: