Content-Length: 290877 | pFad | https://github.com/python/cpython/issues/106232

6E timeit basic examples are not compatible for Windows (CMD/ PowerShell) · Issue #106232 · python/cpython · GitHub
Skip to content

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

@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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/106232

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy