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 — Streamline repr(partial object) · Issue #72249 · python/cpython

Streamline repr(partial object) #72249

New issue
Copy link
New issue
Copy link
Closed
Closed
Streamline repr(partial object)#72249
Copy link
Labels
3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

Vgr255
mannequin
opened on Sep 10, 2016
Issue body actions
BPO 28062
Nosy @rhettinger, @ncoghlan, @serhiy-storchaka, @Vgr255
Files
  • functools_partial_repr_1.patch
  • 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 = None
    closed_at = None
    created_at = <Date 2016-09-10.12:12:43.179>
    labels = ['type-bug', 'library']
    title = 'Streamline repr(partial object)'
    updated_at = <Date 2016-09-10.12:40:13.692>
    user = 'https://github.com/Vgr255'

    bugs.python.org fields:

    activity = <Date 2016-09-10.12:40:13.692>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-09-10.12:12:43.179>
    creator = 'abarry'
    dependencies = []
    files = ['44529']
    hgrepos = []
    issue_num = 28062
    keywords = ['patch']
    message_count = 2.0
    messages = ['275628', '275632']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'ncoghlan', 'serhiy.storchaka', 'abarry']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28062'
    versions = ['Python 3.6']

    Linked PRs

    • gh-72249: Include the module name in the repr of partial object #101910
    • gh-72249: Correct wording of GH-101910 blurb #138468
    • [3.14] gh-72249: Correct wording of GH-101910 blurb (GH-138468) #138470
    • [3.13] gh-72249: Correct wording of GH-101910 blurb (GH-138468) #138471

    Activity

    1. Vgr255 commented on Sep 10, 2016

      @Vgr255
      Vgr255mannequin
      on Sep 10, 2016
      MannequinAuthor
      More actions

      This is a followup to bpo-27137, where it was found out the repr of a partial object includes the module (i.e. 'functools') only if it's not a subclass. This behaviour is surprising at best. Attached patch streamlines the reprs of partial objects to always include the module.

      Raymond, do you remember why this approach was taken? Looking at the code, it seems it was just the easiest way to go about it.

      Side-note: I couldn't run the test suite since I ran into bpo-28061, so I just did manual testing.

    2. Vgr255
      added
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
      on Sep 10, 2016
    3. serhiy-storchaka commented on Sep 10, 2016

      @serhiy-storchaka
      serhiy-storchaka
      on Sep 10, 2016
      Member
      More actions

      Similar issues: bpo-27541 and bpo-21861.

    4. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    5. furkanonder commented on Feb 14, 2023

      @furkanonder
      furkanonder
      on Feb 14, 2023
      Contributor
      More actions

      The PR is ready for review. @serhiy-storchaka

    6. arhadthedev
      added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
      and removed
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      on Feb 15, 2023
    7. serhiy-storchaka
      added a commit that references this issue on Feb 25, 2024

      gh-72249: Include the module name in the repr of partial object (GH-1…

      8f5be78
    8. serhiy-storchaka commented on Feb 25, 2024

      @serhiy-storchaka
      serhiy-storchaka
      on Feb 25, 2024
      Member
      More actions

      Thank you for your contribution @Vgr255 and @furkanonder.

      I do not think that it is worth to backport this change.

      Reacted by Furkan Onder
    9. serhiy-storchaka
      closed this as completedon Feb 25, 2024
    10. serhiy-storchaka
      added
      3.13only security fixesonly security fixes
      on Feb 25, 2024
    11. woodruffw
      added a commit that references this issue on Mar 4, 2024

      pythongh-72249: Include the module name in the repr of partial object (…

      04d8551
    12. adorilson
      added a commit that references this issue on Mar 25, 2024

      pythongh-72249: Include the module name in the repr of partial object (…

      c90c72a
    13. diegorusso
      added a commit that references this issue on Apr 17, 2024

      pythongh-72249: Include the module name in the repr of partial object (…

      f193ce8
    14. LukasWoodtli
      added a commit that references this issue on Jan 22, 2025

      pythongh-72249: Include the module name in the repr of partial object (…

      3d93703
    15. zware
      added 2 commits that reference this issue on Sep 3, 2025

      pythongh-72249: Correct wording of pythonGH-101910 blurb

      504eae4

      gh-72249: Correct wording of GH-101910 blurb (GH-138468)

      007bc5f
    16. miss-islington
      added 2 commits that reference this issue on Sep 3, 2025

      pythongh-72249: Correct wording of pythonGH-101910 blurb (pythonGH-13…

      9195d57

      pythongh-72249: Correct wording of pythonGH-101910 blurb (pythonGH-13…

      07a32be
    17. zware
      added a commit that references this issue on Sep 3, 2025

      [3.13] gh-72249: Correct wording of GH-101910 blurb (GH-138471)

      e8280e3
    18. hugovk
      added a commit that references this issue on Sep 3, 2025

      [3.14] gh-72249: Correct wording of GH-101910 blurb (GH-138468) (#138470

      45a79b4
    19. kumaraditya303
      added a commit that references this issue on Sep 9, 2025

      [3.14] pythongh-72249: Correct wording of pythonGH-101910 blurb (pyth…

      a698b08
    20. lkollar
      added a commit that references this issue on Sep 9, 2025

      pythongh-72249: Correct wording of pythonGH-101910 blurb (pythonGH-13…

      24068c8
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

      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.