Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document miss, Stats objects has no method called "print_results" #62346

Closed
hanks mannequin opened this issue Jun 6, 2013 · 2 comments
Closed

Document miss, Stats objects has no method called "print_results" #62346

hanks mannequin opened this issue Jun 6, 2013 · 2 comments
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@hanks
Copy link
Mannequin

hanks mannequin commented Jun 6, 2013

BPO 18146
Superseder
  • bpo-18033: Example for Profile Module shows incorrect method
  • 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 = <Date 2013-06-06.09:14:13.770>
    created_at = <Date 2013-06-06.04:16:09.229>
    labels = ['type-feature', 'docs']
    title = 'Document miss, Stats objects has no method called "print_results"'
    updated_at = <Date 2013-06-06.09:40:47.370>
    user = 'https://bugs.python.org/hanks'

    bugs.python.org fields:

    activity = <Date 2013-06-06.09:40:47.370>
    actor = 'r.david.murray'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2013-06-06.09:14:13.770>
    closer = 'hanks'
    components = ['Documentation']
    creation = <Date 2013-06-06.04:16:09.229>
    creator = 'hanks'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 18146
    keywords = []
    message_count = 2.0
    messages = ['190705', '190707']
    nosy_count = 3.0
    nosy_names = ['docs@python', 'dmi.baranov', 'hanks']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '18033'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue18146'
    versions = ['Python 2.7']

    @hanks
    Copy link
    Mannequin Author

    hanks mannequin commented Jun 6, 2013

    link: http://docs.python.org/2/library/profile.html

    The example in this page:

    import cProfile, pstats, io
    pr = cProfile.Profile()
    pr.enable()
    ... do something ...
    pr.disable()
    s = io.StringIO()
    ps = pstats.Stats(pr, stream=s)
    ps.print_results()  # actually Stats objects has no method called "print_results"

    @hanks hanks mannequin assigned docspython Jun 6, 2013
    @hanks hanks mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Jun 6, 2013
    @dmibaranov
    Copy link
    Mannequin

    dmibaranov mannequin commented Jun 6, 2013

    Duplication of bpo-18033

    @hanks hanks mannequin closed this as completed Jun 6, 2013
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants