Issue 22033: Subclass friendly reprs (original) (raw)

Issue22033

Created on 2014-07-22 09:08 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
repr_subclass_friendly.diff serhiy.storchaka,2014-07-22 09:08 review
Messages (4)
msg223650 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-07-22 09:08
Some reprs in stdlib are subclass friendly. They contains class name or even fully qualified class name and substitute appropriate subclass name in subclasses. But some reprs contains hardcoded either class name, or module name, or fully qualified class name. Proposed patch makes multiple reprs in stdlib more subclass friendly. See also .
msg223988 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2014-07-25 19:26
+1 These all look worthwhile and correct.
msg223997 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-07-25 20:36
New changeset 42276ad3acef by Serhiy Storchaka in branch 'default': Issue #22033: Reprs of most Python implemened classes now contain actual http://hg.python.org/cpython/rev/42276ad3acef
msg223999 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-07-25 20:40
Thanks Raymond for the review.
History
Date User Action Args
2022-04-11 14:58:06 admin set github: 66232
2014-07-25 20:40:49 serhiy.storchaka set status: open -> closedmessages: + assignee: serhiy.storchakaresolution: fixedstage: patch review -> resolved
2014-07-25 20:36:16 python-dev set nosy: + python-devmessages: +
2014-07-25 19:26:20 rhettinger set messages: +
2014-07-22 12:32:31 vstinner set nosy: + vstinner
2014-07-22 09:08:04 serhiy.storchaka create