Skip to content

timeit accepts -c/--clock and -t/--time without any functionality #90085

Description

@malemburg
BPO 45927
Nosy @malemburg

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 = None
created_at = <Date 2021-11-29.14:15:45.584>
labels = ['library', '3.10', '3.11']
title = 'timeit accepts -c/--clock and -t/--time without any functionality'
updated_at = <Date 2021-11-29.14:15:45.584>
user = 'https://github.com/malemburg'

bugs.python.org fields:

activity = <Date 2021-11-29.14:15:45.584>
actor = 'lemburg'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-11-29.14:15:45.584>
creator = 'lemburg'
dependencies = []
files = []
hgrepos = []
issue_num = 45927
keywords = []
message_count = 1.0
messages = ['407276']
nosy_count = 1.0
nosy_names = ['lemburg']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue45927'
versions = ['Python 3.10', 'Python 3.11']

Activity

  1. malemburg commented on Nov 29, 2021

    @malemburg
    MemberAuthor

    From the code:

        opts, args = getopt.getopt(args, "n:u:s:r:tcpvh",
                                   ["number=", "setup=", "repeat=",
                                    "time", "clock", "process",
                                    "verbose", "unit=", "help"])
    

    but the options -c and -t are not used in the subsequent code.

    This can lead to situations where if you mistype e.g. -s as -c, you get completely wrong results (see https://bugs.python.org/issue45902 for an example).

  2. added
    3.11only security fixes
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 29, 2021
  3. transferred this issue fromon Apr 10, 2022
  4. added a commit that references this issue on Jul 17, 2022
  5. added a commit that references this issue on Oct 7, 2022
  6. JelleZijlstra commented on Oct 7, 2022

    @JelleZijlstra
    Member

    Thanks for the fix @hauntsaninja!

  7. added a commit that references this issue on Oct 11, 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

    3.10 (EOL)end of life3.11only security fixesstdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions