Skip to content

2to3 to simultaneously do code and doctests #53519

Closed

Description

@tiagoantao
BPO 9273
Nosy @benjaminp, @merwok, @tiagoantao
Superseder
  • bpo-45544: Close 2to3 issues and list them here
  • 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 = <Date 2021-10-20.22:34:55.564>
    created_at = <Date 2010-07-16.15:48:43.871>
    labels = ['type-feature', 'expert-2to3']
    title = '2to3 to simultaneously do code and doctests'
    updated_at = <Date 2021-10-20.22:43:27.197>
    user = 'https://github.com/tiagoantao'

    bugs.python.org fields:

    activity = <Date 2021-10-20.22:43:27.197>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-20.22:34:55.564>
    closer = 'iritkatriel'
    components = ['2to3 (2.x to 3.x conversion tool)']
    creation = <Date 2010-07-16.15:48:43.871>
    creator = 'tiagoantao'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 9273
    keywords = []
    message_count = 2.0
    messages = ['110457', '138327']
    nosy_count = 3.0
    nosy_names = ['benjamin.peterson', 'eric.araujo', 'tiagoantao']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = '45544'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue9273'
    versions = ['Python 3.3']

    Activity

    1. tiagoantao commented on Jul 16, 2010

      tiagoantaomannequin
      MannequinAuthor

      Currently 2to3 has to be called twice in order to do a full code conversion: one for the code and another for the doctests.

      Would it be possible to do both things simultaneously (on passing a flag)?

      It would be nice if distutils.command.build_py.build_py_2to3 would also have this functionality (ie a single pass for both code and docutils)

      Thanks

    2. changed the title [-]2to to simultaneously do code AND doctests[/-] [+]2to3 to simultaneously do code AND doctests[/+] on Aug 4, 2010
    3. merwok commented on Jun 14, 2011

      @merwok
      Member

      For the 2to3 support in the new packaging module (successor of distutils), we even do three passes: code, docstrings and doctest files.

    4. changed the title [-]2to3 to simultaneously do code AND doctests[/-] [+]2to3 to simultaneously do code and doctests[/+] on Jun 14, 2011
    5. 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

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions