GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — timeit accepts -c/--clock and -t/--time without any functionality · Issue #90085 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
timeit accepts -c/--clock and -t/--time without any functionality#90085
Copy link
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

Description

@malemburg
malemburg
opened on Nov 29, 2021
Issue body actions
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
    malemburg
    on Nov 29, 2021
    MemberAuthor
    More actions

    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. malemburg
    added
    3.10 (EOL)end of lifeend of life
    3.11only security fixesonly security fixes
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Nov 29, 2021
  3. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  4. hauntsaninja
    added a commit that references this issue on Jul 17, 2022

    pythongh-90085: Remove vestigial -t and -c timeit options

    c2670f0
  5. JelleZijlstra
    added a commit that references this issue on Oct 7, 2022

    gh-90085: Remove vestigial -t and -c timeit options (#94941)

    cb4615f
  6. JelleZijlstra commented on Oct 7, 2022

    @JelleZijlstra
    JelleZijlstra
    on Oct 7, 2022
    Member
    More actions

    Thanks for the fix @hauntsaninja!

  7. JelleZijlstra
    closed this as completedon Oct 7, 2022
  8. carljm
    added 2 commits that reference this issue on Oct 8, 2022

    Merge branch 'main' into typewatch

    27a4980

    Merge branch 'main' into urllibnonet

    132c32e
  9. mpage
    added a commit that references this issue on Oct 11, 2022

    pythongh-90085: Remove vestigial -t and -c timeit options (python#94941)

    5a71338
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 lifeend of life3.11only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.