GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Subclass friendly reprs · Issue #66232 · python/cpython

Subclass friendly reprs #66232

New issue
Copy link
New issue
Copy link
Closed
Closed
Subclass friendly reprs#66232
Copy link
Assignees
serhiy-storchaka
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@serhiy-storchaka
serhiy-storchaka
opened on Jul 22, 2014
Issue body actions
BPO 22033
Nosy @rhettinger, @vstinner, @serhiy-storchaka
Files
  • repr_subclass_friendly.diff
  • 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/serhiy-storchaka'
    closed_at = <Date 2014-07-25.20:40:49.651>
    created_at = <Date 2014-07-22.09:08:04.932>
    labels = ['type-feature', 'library']
    title = 'Subclass friendly reprs'
    updated_at = <Date 2014-07-25.20:40:49.650>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2014-07-25.20:40:49.650>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2014-07-25.20:40:49.651>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2014-07-22.09:08:04.932>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['36027']
    hgrepos = []
    issue_num = 22033
    keywords = ['patch']
    message_count = 4.0
    messages = ['223650', '223988', '223997', '223999']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'vstinner', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue22033'
    versions = ['Python 3.5']

    Activity

    1. serhiy-storchaka commented on Jul 22, 2014

      @serhiy-storchaka
      serhiy-storchaka
      on Jul 22, 2014
      MemberAuthor
      More actions

      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 bpo-22032.

    2. serhiy-storchaka
      added
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancementA feature request or enhancement
      on Jul 22, 2014
    3. rhettinger commented on Jul 25, 2014

      @rhettinger
      rhettinger
      on Jul 25, 2014
      Contributor
      More actions

      +1 These all look worthwhile and correct.

    4. python-dev commented on Jul 25, 2014

      @python-dev
      python-devmannequin
      on Jul 25, 2014
      Mannequin
      More actions

      New changeset 42276ad3acef by Serhiy Storchaka in branch 'default':
      Issue bpo-22033: Reprs of most Python implemened classes now contain actual
      http://hg.python.org/cpython/rev/42276ad3acef

    5. serhiy-storchaka commented on Jul 25, 2014

      @serhiy-storchaka
      serhiy-storchaka
      on Jul 25, 2014
      MemberAuthor
      More actions

      Thanks Raymond for the review.

    6. serhiy-storchaka
      closed this as completedon Jul 25, 2014
    7. serhiy-storchaka
      self-assigned this
      on Jul 25, 2014
    8. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    • @serhiy-storchaka
      serhiy-storchaka

    Labels

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.