[issue40995] reprlib.Repr.__init__ should accept arguments

2020-06-16 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +20104 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20925 ___ Python tracker ___

[issue40995] reprlib.Repr.__init__ should accept arguments

2020-06-16 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : reprlib.Repr does not accept arguments for the moment so setting its attributes must be done in multiple steps: import reprlib r = reprlib.Repr() r.maxstring = 10 r.maxset = 4 r.repr(...) It would be more user-friendly to be able to do: import reprlib r = r