Skip to content

Squeezer - squeeze large output in IDLE's shell #43728

Closed

Description

@taleinat
BPO 1529353
Nosy @terryjreedy, @taleinat, @serhiy-storchaka, @csabella, @miss-islington
PRs
  • bpo-1529353: IDLE: squeeze large output in the shell #7626
  • [3.7] bpo-1529353: IDLE: squeeze large output in the shell (GH-7626) #9561
  • [3.6] bpo-1529353: IDLE: squeeze large output in the shell (GH-7626) #9562
  • bpo-1529353: IDLE: Squeezer What's New for 3.6.7 #9567
  • bpo-1529353: IDLE - Squeezer What's New for 3.7.1 #9568
  • [3.7] bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567) #9569
  • [3.6] bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567) #9570
  • [3.7] bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (GH-9568) #9571
  • bpo-1529353: IDLE - Squeezer What's New for 3.8 #9572
  • bpo-1529353: Explain Shell text squeezing in the IDLE doc. #10169
  • [3.7] bpo-1529353: Explain Shell text squeezing in the IDLE doc. (GH-10169) #10179
  • [3.6] bpo-1529353: Explain Shell text squeezing in the IDLE doc. (GH-10169) #10180
  • Dependencies
  • bpo-33839: IDLE tooltips.py: refactor and add docstrings and tests
  • Files
  • Squeezer.py: Noam Raphael's original Squeezer.py (from IDLE-fork)
  • IDLE_Squeezer.patch: initial patch
  • taleinat.20140211.IDLE_Squeezer.patch: modern patch for Python 3.4
  • Squeezer_Screenshot.PNG
  • 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/terryjreedy'
    closed_at = <Date 2018-09-26.11:40:17.976>
    created_at = <Date 2006-07-27.00:13:56.000>
    labels = ['3.8', 'expert-IDLE', 'type-feature', '3.7']
    title = "Squeezer - squeeze large output in IDLE's shell"
    updated_at = <Date 2018-10-28.17:08:26.340>
    user = 'https://github.com/taleinat'

    bugs.python.org fields:

    activity = <Date 2018-10-28.17:08:26.340>
    actor = 'miss-islington'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2018-09-26.11:40:17.976>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2006-07-27.00:13:56.000>
    creator = 'taleinat'
    dependencies = ['33839']
    files = ['7428', '7429', '34050', '34209']
    hgrepos = []
    issue_num = 1529353
    keywords = ['patch']
    message_count = 59.0
    messages = ['50765', '50766', '50767', '50768', '50769', '84637', '84645', '84657', '210296', '210310', '211027', '211068', '211071', '211075', '211076', '211083', '211643', '211645', '211646', '211647', '212021', '212061', '319291', '319316', '319317', '319319', '319339', '319344', '319353', '319367', '319428', '319430', '319452', '319494', '319495', '319496', '323471', '324255', '324365', '324374', '326100', '326310', '326343', '326347', '326348', '326349', '326350', '326368', '326369', '326370', '326371', '326372', '326373', '326374', '326419', '326445', '328703', '328710', '328711']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'taleinat', 'serhiy.storchaka', 'cheryl.sabella', 'miss-islington']
    pr_nums = ['7626', '9561', '9562', '9567', '9568', '9569', '9570', '9571', '9572', '10169', '10179', '10180']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1529353'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Activity

    1. taleinat commented on Jul 27, 2006

      @taleinat
      ContributorAuthor

      Here is my improved version of Squeezer - the IDLE
      extension to end all of your
      oh-no-I-just-printed-War-and-Peace-in-the-interpreter
      troubles!

      Changes:

      • Fixed line counting logic
      • Line counting is done according to current window
        width and current tab width
      • Fixed configHandler to enable reading of raw data
        from config files (100% backwards compatible) - needed
        by Squeezer to enable configuration of text viewers in
        config-extensions

      I've been working this vesion without a hitch for
      several weeks, but that's hardly enough testing is it?

      Attached:

      • the original Squeezer.py by Noam Raphael
      • a diff against Noam's original Squeezer.py
      • a diff of configHandler.py against the current SVN
        version (revision 46863)
      • fixed 'middle click to copy' - now works on Windows

      One minor note - the 'middle click to copy' didn't work
      on Windows because it simply called selection_own()
      which doesn't affect the clipboard. I added
      clipboard_clear() and clipboard_append() and it now
      works on Windows. This should be tested on Linux, Unix,
      OSX etc. to check compatibility.

      For more info on the clipboard issue, see:
      http://groups.google.com/group/comp.lang.python/browse_thread/thread/647feeef55625733/bc08421d8aea9928?lnk=st&q=&rnum=2#bc08421d8aea9928

    2. kbkaiser commented on Jul 27, 2006

      @kbkaiser
      Contributor

      Logged In: YES
      user_id=149084

      OK, thanks. Please take a look at the two diffs you
      uploaded, they seem corrupted. Squeezer.py looks ok.

    3. taleinat commented on Jul 30, 2006

      @taleinat
      ContributorAuthor

      Logged In: YES
      user_id=1330769

      Uploaded unified diffs instead of standard diffs. Probably
      the first diffs had bad newlines because I'm working on Win.

      Also 2 changes:

      • minor fix - end case when clicking at beginning of text block
      • Allow squeezing of stderr (tracebacks...)
    4. kbkaiser commented on Jul 30, 2006

      @kbkaiser
      Contributor

      Logged In: YES
      user_id=149084

      Ah, that's better. Thanks.

    5. kbkaiser commented on Feb 5, 2007

      @kbkaiser
      Contributor

      Delete the patch to configHandler.py, implemented with Patch 1650174.

    6. added
      type-feature
      on Mar 30, 2009
    7. taleinat commented on Mar 30, 2009

      @taleinat
      ContributorAuthor

      "Test needed"? I'll need a bit of guidance on this.

      Has there been a change of policy of which I'm not aware, that patches
      to IDLE not going to be accepted unless comprehensive tests are included?

      Much of IDLE doesn't include tests, e.g. the RPC code. There's a comment
      by K.B.K. in the end of rpc.py from September '03 saying we need a
      proper test suite for it, and testing that should be simple compared to
      testing GUI related functionality.

      In any case, if someone can suggest a simple approach to test Squeezer
      I'll gladly work it up. As it is, I can think of ways to test certain
      functions, but I'm not sure how to approach testing GUI related
      functionality (or if I should approach this at all).

    8. devdanzin commented on Mar 30, 2009

      devdanzinmannequin
      Mannequin

      Tal,
      There is no such policy AFAIK. The stage field is a tool to help us
      handle the issues, sorry to give you a wrong impression. If IDLE has no
      tests, 'test needed' doesn't apply here, so we can set this to 'patch
      review'.

      If someone is already working on adding tests for IDLE, please revert
      this to 'test needed'.

    9. taleinat commented on Mar 30, 2009

      @taleinat
      ContributorAuthor

      Daniel, Thanks for clearing that up :)

    10. taleinat commented on Feb 5, 2014

      @taleinat
      ContributorAuthor

      Ping?

      Can this please go in? It's such a great improvement to user experience!

      I've seen too many novice users print a ton of output by accident and have IDLE hang as a result, losing their interactive session. This simple extension avoid those issues completely, while still allowing access to the output if needed.

      I'd even be willing to do any extra work required, such as testing on Windows, Linux and OSX. Just tell me what's holding this up!

    11. 50 remaining items

    12. terryjreedy commented on Sep 25, 2018

      @terryjreedy
      Member

      New changeset dac712d by Terry Jan Reedy in branch 'master':
      bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (bpo-9567)
      dac712d

    13. terryjreedy commented on Sep 25, 2018

      @terryjreedy
      Member

      New changeset ea718d3 by Terry Jan Reedy in branch 'master':
      bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (bpo-9568)
      ea718d3

    14. miss-islington commented on Sep 25, 2018

      @miss-islington
      Contributor

      New changeset 98c8236 by Miss Islington (bot) in branch '3.6':
      bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567)
      98c8236

    15. miss-islington commented on Sep 25, 2018

      @miss-islington
      Contributor

      New changeset 92ad261 by Miss Islington (bot) in branch '3.7':
      bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567)
      92ad261

    16. miss-islington commented on Sep 25, 2018

      @miss-islington
      Contributor

      New changeset 3637e68 by Miss Islington (bot) in branch '3.7':
      bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (GH-9568)
      3637e68

    17. terryjreedy commented on Sep 25, 2018

      @terryjreedy
      Member

      See my 3.6/3.7 patches for how I now handle new-in-maintenance-release user-visible features in What's New. Note that there are similar entries for Python at the bottom of the file.

      If I were not rushing, I would have mentioned user colors in text view. But that is minor and I will add one entry for colors and font sizes in both text and help views when done.

    18. terryjreedy commented on Sep 25, 2018

      @terryjreedy
      Member

      New changeset fdcb5ae by Terry Jan Reedy in branch 'master':
      bpo-1529353: IDLE - Squeezer What's New for 3.8 (bpo-9572)
      fdcb5ae

    19. taleinat commented on Sep 26, 2018

      @taleinat
      ContributorAuthor

      ISTM that this issue can finally be closed!

      Followup on some remaining minor points brought up here, such as colors and squeezing of multiple output lines printed separately, could be done in separate issues or discussed on idle-dev.

    20. terryjreedy commented on Sep 26, 2018

      @terryjreedy
      Member

      Yes. Congratulations on your persistence.

    21. terryjreedy commented on Oct 28, 2018

      @terryjreedy
      Member

      New changeset 68d6dc0 by Terry Jan Reedy in branch 'master':
      bpo-1529353: Explain Shell text squeezing in the IDLE doc. (bpo-10169)
      68d6dc0

    22. miss-islington commented on Oct 28, 2018

      @miss-islington
      Contributor

      New changeset 8dccb00 by Miss Islington (bot) in branch '3.7':
      bpo-1529353: Explain Shell text squeezing in the IDLE doc. (GH-10169)
      8dccb00

    23. miss-islington commented on Oct 28, 2018

      @miss-islington
      Contributor

      New changeset 69ab28d by Miss Islington (bot) in branch '3.6':
      bpo-1529353: Explain Shell text squeezing in the IDLE doc. (GH-10169)
      69ab28d

    24. 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

    Labels

    3.7 (EOL)3.8 (EOL)topic-IDLEtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions