Skip to content

return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit #62718

@icedream91

Description

@icedream91
BPO 18518
Nosy @rhettinger, @vstinner, @bitdancer, @serhiy-storchaka
Files
  • timeit.patch: patch containing added note
  • timeit_reject_invalid_statements.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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2015-01-27.08:56:11.103>
    created_at = <Date 2013-07-21.09:46:59.985>
    labels = ['type-bug', 'library']
    title = 'return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit'
    updated_at = <Date 2015-01-27.08:56:11.103>
    user = 'https://bugs.python.org/icedream91'

    bugs.python.org fields:

    activity = <Date 2015-01-27.08:56:11.103>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2015-01-27.08:56:11.103>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2013-07-21.09:46:59.985>
    creator = 'icedream91'
    dependencies = []
    files = ['34823', '37577']
    hgrepos = []
    issue_num = 18518
    keywords = ['patch']
    message_count = 17.0
    messages = ['193429', '193432', '193451', '193473', '193483', '193487', '216108', '216129', '216136', '216140', '216141', '216198', '233264', '234235', '234729', '234732', '234733']
    nosy_count = 9.0
    nosy_names = ['rhettinger', 'vstinner', 'r.david.murray', 'docs@python', 'python-dev', 'Ramchandra Apte', 'serhiy.storchaka', 'icedream91', 'jonathan.ferretti']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue18518'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Labels

    stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions