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: Subclass friendly reprs
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: python-dev, rhettinger, serhiy.storchaka, vstinner
Priority: normal Keywords: patch

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 issue22032.
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:06adminsetgithub: 66232
2014-07-25 20:40:49serhiy.storchakasetstatus: open -> closed
messages: + msg223999

assignee: serhiy.storchaka
resolution: fixed
stage: patch review -> resolved
2014-07-25 20:36:16python-devsetnosy: + python-dev
messages: + msg223997
2014-07-25 19:26:20rhettingersetmessages: + msg223988
2014-07-22 12:32:31vstinnersetnosy: + vstinner
2014-07-22 09:08:04serhiy.storchakacreate