This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: reprlib.Repr.__init__ should accept arguments
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: remi.lapeyre
Priority: normal Keywords: patch

Created on 2020-06-16 23:00 by remi.lapeyre, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 20925 open remi.lapeyre, 2020-06-16 23:13
Messages (1)
msg371701 - (view) Author: Rémi Lapeyre (remi.lapeyre) * Date: 2020-06-16 23:00
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 = reprlib.Repr(maxstring=10, maxset=4)
r.repr(...)
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85167
2020-06-16 23:13:25remi.lapeyresetkeywords: + patch
stage: patch review
pull_requests: + pull_request20104
2020-06-16 23:00:12remi.lapeyrecreate