Skip to content

timeit basic examples are not compatible for Windows (CMD/ PowerShell) #106232

Closed
@arye321

Description

@arye321

Documentation

on this page
https://docs.python.org/3/library/timeit.html

the example

python3 -m timeit '"-".join(str(n) for n in range(100))'

should be

python3 -m timeit "'-'.join(str(n) for n in range(100))"

because CMD and PowerShell do not support the first format

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsdocsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions