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

cProfile.runctx doesn't allow sort argument #54107

Closed
cool-RR mannequin opened this issue Sep 19, 2010 · 4 comments
Closed

cProfile.runctx doesn't allow sort argument #54107

cool-RR mannequin opened this issue Sep 19, 2010 · 4 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@cool-RR
Copy link
Mannequin

cool-RR mannequin commented Sep 19, 2010

BPO 9898
Nosy @amauryfa, @cool-RR
Files
  • cProfile.patch: Patch for allowing sort argument to cProfile.runctx
  • 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 2010-09-20.06:35:13.884>
    created_at = <Date 2010-09-19.18:55:39.083>
    labels = ['type-feature', 'library']
    title = "cProfile.runctx doesn't allow sort argument"
    updated_at = <Date 2010-09-20.17:41:31.353>
    user = 'https://github.com/cool-RR'

    bugs.python.org fields:

    activity = <Date 2010-09-20.17:41:31.353>
    actor = 'amaury.forgeotdarc'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-09-20.06:35:13.884>
    closer = 'amaury.forgeotdarc'
    components = ['Library (Lib)']
    creation = <Date 2010-09-19.18:55:39.083>
    creator = 'cool-RR'
    dependencies = []
    files = ['18932']
    hgrepos = []
    issue_num = 9898
    keywords = ['patch']
    message_count = 4.0
    messages = ['116880', '116912', '116923', '116956']
    nosy_count = 2.0
    nosy_names = ['amaury.forgeotdarc', 'cool-RR']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue9898'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    @cool-RR
    Copy link
    Mannequin Author

    cool-RR mannequin commented Sep 19, 2010

    The cProfile.runctx function currently doesn't allow using the sort argument. For some reason the sort argument is allowed in run but not in runctx. Attached is a patch that allows using sort in runctx.

    @cool-RR cool-RR mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Sep 19, 2010
    @amauryfa
    Copy link
    Member

    This has already been done as part of bpo-9428 in r83524.

    @cool-RR
    Copy link
    Mannequin Author

    cool-RR mannequin commented Sep 20, 2010

    Is this going into 3.2?

    @amauryfa
    Copy link
    Member

    yes, as you can see in the diffs, it's already in 3.2alpha2.

    @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
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant