Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools/importbench/importbench.py is broken #71605

Closed
serhiy-storchaka opened this issue Jun 29, 2016 · 7 comments
Closed

Tools/importbench/importbench.py is broken #71605

serhiy-storchaka opened this issue Jun 29, 2016 · 7 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

BPO 27418
Nosy @brettcannon, @serhiy-storchaka
Files
  • importbench.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 = <Date 2016-06-30.07:36:02.557>
    created_at = <Date 2016-06-29.18:27:40.683>
    labels = ['type-bug']
    title = 'Tools/importbench/importbench.py is broken'
    updated_at = <Date 2016-06-30.07:36:02.557>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2016-06-30.07:36:02.557>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-06-30.07:36:02.557>
    closer = 'serhiy.storchaka'
    components = ['Demos and Tools']
    creation = <Date 2016-06-29.18:27:40.683>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['43583']
    hgrepos = []
    issue_num = 27418
    keywords = ['patch']
    message_count = 7.0
    messages = ['269539', '269541', '269543', '269552', '269553', '269557', '269561']
    nosy_count = 3.0
    nosy_names = ['brett.cannon', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27418'
    versions = ['Python 3.5', 'Python 3.6']

    @serhiy-storchaka
    Copy link
    Member Author

    $ ./python Tools/importbench/importbench.py
    Traceback (most recent call last):
      File "Tools/importbench/importbench.py", line 8, in <module>
        from test.test_importlib.source import util as source_util
    ImportError: cannot import name 'util'

    @serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Jun 29, 2016
    @brettcannon
    Copy link
    Member

    If you don't have any use for it I say just delete the benchmark.

    @serhiy-storchaka
    Copy link
    Member Author

    Just now I'm writing a patch for optimizing __import__. Maybe importbench would be helpful.

    @brettcannon
    Copy link
    Member

    Feel free to do whatever you need/want to with the benchmark. I originally created it when switching __import__ to importlib to prove that it didn't impact performance.

    @serhiy-storchaka
    Copy link
    Member Author

    Following patch seems fixes importbench.

    @brettcannon
    Copy link
    Member

    I don't see anything obviously wrong with it.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jun 30, 2016

    New changeset ba4548916f05 by Serhiy Storchaka in branch '3.5':
    Issue bpo-27418: Fixed Tools/importbench/importbench.py.
    https://hg.python.org/cpython/rev/ba4548916f05

    New changeset c2e898813409 by Serhiy Storchaka in branch 'default':
    Issue bpo-27418: Fixed Tools/importbench/importbench.py.
    https://hg.python.org/cpython/rev/c2e898813409

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants