Skip to content

IDLE: revise zzdummy.py #76812

Closed
Closed

Description

@terryjreedy
BPO 32631
Nosy @terryjreedy
PRs
  • bpo-32631: IDLE: Enable zzdummy extension module #14491
  • [3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14… #24114
  • [3.8] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491) #24115
  • 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 2021-01-05.09:18:33.266>
    created_at = <Date 2018-01-23.06:57:24.596>
    labels = ['expert-IDLE', 'type-bug', '3.8', '3.9', '3.10']
    title = 'IDLE: revise zzdummy.py'
    updated_at = <Date 2021-01-05.09:18:33.266>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2021-01-05.09:18:33.266>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2021-01-05.09:18:33.266>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2018-01-23.06:57:24.596>
    creator = 'terry.reedy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32631
    keywords = ['patch']
    message_count = 5.0
    messages = ['310473', '384372', '384376', '384377', '384378']
    nosy_count = 1.0
    nosy_names = ['terry.reedy']
    pr_nums = ['14491', '24114', '24115']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32631'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Activity

    1. terryjreedy commented on Jan 23, 2018

      @terryjreedy
      MemberAuthor

      zzdummy.py is needed for properly testing the extension mechanism. It is intended to provide an example extension for users to follow. When completed, enabled, and invoked, it will prefix every line of a window with some text, or remove the prefix from every line. It would be even better to make it respect selections, as other format options do.

      Needed: more comments, including what it does when enabled; docstring for z_in_event; uncomment z_in_event; code for z_out_event.

      Should the extension have a different name? ZzTestExample? ZzIgnoreThis? Changing an extension name would normally be a bad idea, as it would disable any customizations. But I think we could do it for this one if desired.

      The default insertion text could be more informative: for instance, 'ignore this' or 'see-doc' or #ignore#. The last would make it a configurable comment/uncomment. Normally, changing a default is a no-no, as it can mess up user configurations. But since the current text is inoperative, this should not matter here.

      The menu defs are commented out because enabling the extension currently has no effect, so the menu entries would be useless.

      ***There should be help text for the extension tab explaining the presence and operation of the extension. (This should have been done already.)

      Extension tests, last revised in bpo-31480, will likely need more changes.

    2. self-assigned this
      on Jan 23, 2018
    3. added
      type-bug
      on Jan 23, 2018
    4. added
      3.9 (EOL)
      3.10 (EOL)
      and removed
      3.7 (EOL)
      on Jun 13, 2020
    5. terryjreedy commented on Jan 5, 2021

      @terryjreedy
      MemberAuthor

      New changeset e40e2a2 by Cheryl Sabella in branch 'master':
      bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
      e40e2a2

    6. terryjreedy commented on Jan 5, 2021

      @terryjreedy
      MemberAuthor

      New changeset d82392f by Terry Jan Reedy in branch '3.9':
      [3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
      d82392f

    7. terryjreedy commented on Jan 5, 2021

      @terryjreedy
      MemberAuthor

      https://stackoverflow.com/questions/65567057/how-can-i-get-started-developing-extensions-for-python-idle prompted me to finish this enough to merge it.

      My intention was that in the absence of a selection, all lines should be prefixed, not just the current one. My impression is that some other formatters do this, but maybe not. In any case, it does not matter exactly what this dummy example does, as long as it works as documented.

    8. terryjreedy commented on Jan 5, 2021

      @terryjreedy
      MemberAuthor

      New changeset a087a97 by Terry Jan Reedy in branch '3.8':
      [3.8] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
      a087a97

    9. 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.10 (EOL)3.8 (EOL)3.9 (EOL)topic-IDLEtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions