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 — Profile docs has error in example in tldr · Issue #102994 · python/cpython

Profile docs has error in example in tldr #102994

New issue
Copy link
New issue
Copy link
Closed
Closed
Profile docs has error in example in tldr#102994
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasy

Description

@TheWizier
TheWizier
opened on Mar 24, 2023
Issue body actions

Documentation

https://docs.python.org/3/library/profile.html
The following example is given in the Instant User's Manual section:

214 function calls (207 primitive calls) in 0.002 seconds

Ordered by: cumulative time

ncalls  tottime  percall  cumtime  percall filename:lineno(function)
     1    0.000    0.000    0.002    0.002 {built-in method builtins.exec}
     1    0.000    0.000    0.001    0.001 <string>:1(<module>)
     1    0.000    0.000    0.001    0.001 __init__.py:250(compile)
     1    0.000    0.000    0.001    0.001 __init__.py:289(_compile)
     1    0.000    0.000    0.000    0.000 _compiler.py:759(compile)
     1    0.000    0.000    0.000    0.000 _parser.py:937(parse)
     1    0.000    0.000    0.000    0.000 _compiler.py:598(_code)
     1    0.000    0.000    0.000    0.000 _parser.py:435(_parse_sub)

however in the description of the example:
The next line: Ordered by: cumulative name, indicates ...

Which does not match the example

Linked PRs

  • gh-102994: Profile docs has typo in example #103074
  • [3.11] gh-102994: Profile docs has typo in example (GH-103074) #103201

Activity

  1. TheWizier
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Mar 24, 2023
  2. hugovk commented on Mar 24, 2023

    @hugovk
    hugovk
    on Mar 24, 2023
    Member
    More actions

    Thanks for the report, would you like to create a PR to fix it?

    The file to edit is https://github.com/python/cpython/blob/main/Doc/library/profile.rst

  3. hugovk
    added
    easy
    on Mar 24, 2023
  4. nouranali
    added a commit that references this issue on Mar 28, 2023

    fixes python#102994

    This issue will close once commit b5c67c6 is merged into the 'main' branch.
    b5c67c6
  5. hauntsaninja
    added a commit that references this issue on Apr 2, 2023

    gh-102994: Profile docs has typo in example (#103074)

    55decb7
  6. miss-islington
    added 2 commits that reference this issue on Apr 2, 2023

    pythongh-102994: Profile docs has typo in example (pythonGH-103074)

    2d8c4e2

    gh-102994: Profile docs has typo in example (GH-103074)

    8236222
  7. hauntsaninja
    closed this as completedon Apr 2, 2023
  8. gaogaotiantian
    added a commit that references this issue on Apr 8, 2023

    pythongh-102994: Profile docs has typo in example (python#103074)

    5eadc5c
  9. warsaw
    added a commit that references this issue on Apr 11, 2023

    pythongh-102994: Profile docs has typo in example (python#103074)

    544ae24
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

    docsDocumentation in the Doc dirDocumentation in the Doc direasy

    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.