Use pprint in displayhook

Open
#63,302 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by reading displayhook_pprint.patch and displayhook_pprint_2.patch, then inspect the displayhook implementation they target. Review the related dependencies—BPO 19100, 19104, and 19132—to understand the intended pprint behavior. Done means the displayhook uses pprint as described without leaving the dependent issues unresolved.

Written by the indexing model from the issue text.

Description

stdlib type-feature
BPO 19103
Nosy @freddrake, @rhettinger, @terryjreedy, @pitrou, @serhiy-storchaka
Dependencies
  • bpo-19100: Use backslashreplace in pprint
  • bpo-19104: pprint produces invalid output for long strings
  • bpo-19132: Add compact mode to pprint
  • Files
  • displayhook_pprint.patch
  • displayhook_pprint_2.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 2013-09-27.11:41:47.353>
    labels = ['type-feature']
    title = 'Use pprint in displayhook'
    updated_at = <Date 2013-09-29.20:22:18.178>
    user = 'https://github.com/serhiy-storchaka'
    

    bugs.python.org fields:

    activity = <Date 2013-09-29.20:22:18.178>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2013-09-27.11:41:47.353>
    creator = 'serhiy.storchaka'
    dependencies = ['19100', '19104', '19132']
    files = ['31883', '31885']
    hgrepos = []
    issue_num = 19103
    keywords = ['patch']
    message_count = 4.0
    messages = ['198468', '198477', '198556', '198646']
    nosy_count = 5.0
    nosy_names = ['fdrake', 'rhettinger', 'terry.reedy', 'pitrou', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue19103'
    versions = ['Python 3.4']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.