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

add new function, sys.gettrace #45989

Closed
titus mannequin opened this issue Dec 18, 2007 · 5 comments
Closed

add new function, sys.gettrace #45989

titus mannequin opened this issue Dec 18, 2007 · 5 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@titus
Copy link
Mannequin

titus mannequin commented Dec 18, 2007

BPO 1648
Nosy @gvanrossum, @brettcannon, @birkenfeld
Files
  • gettrace.diff
  • gettrace+getprofile.diff
  • 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 = 'https://github.com/birkenfeld'
    closed_at = <Date 2008-01-20.13:59:57.678>
    created_at = <Date 2007-12-18.07:16:46.405>
    labels = ['type-feature', 'library']
    title = 'add new function, sys.gettrace'
    updated_at = <Date 2008-01-20.13:59:57.676>
    user = 'https://bugs.python.org/titus'

    bugs.python.org fields:

    activity = <Date 2008-01-20.13:59:57.676>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2008-01-20.13:59:57.678>
    closer = 'georg.brandl'
    components = ['Library (Lib)']
    creation = <Date 2007-12-18.07:16:46.405>
    creator = 'titus'
    dependencies = []
    files = ['8982', '8991']
    hgrepos = []
    issue_num = 1648
    keywords = ['patch']
    message_count = 5.0
    messages = ['58725', '58765', '58767', '58794', '61293']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'brett.cannon', 'georg.brandl', 'titus']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1648'
    versions = ['Python 2.6']

    @titus
    Copy link
    Mannequin Author

    titus mannequin commented Dec 18, 2007

    Currently there is no way to retrieve the current trace function; this
    patch adds 'gettrace' to the sys module.

    This behavior is very useful for helping to control code coverage
    analysis tools.

    @titus titus mannequin added type-bug An unexpected behavior, bug, or error stdlib Python modules in the Lib dir labels Dec 18, 2007
    @tiran tiran added type-feature A feature request or enhancement and removed type-bug An unexpected behavior, bug, or error labels Dec 18, 2007
    @brettcannon brettcannon self-assigned this Dec 18, 2007
    @gvanrossum
    Copy link
    Member

    Why not do the same for its cousin sys.setprofile()?

    @brettcannon
    Copy link
    Member

    On Dec 18, 2007 12:14 PM, Guido van Rossum <report@bugs.python.org> wrote:

    Guido van Rossum added the comment:

    Why not do the same for its cousin sys.setprofile()?

    If Titus' code works out I was going to just copy it and tweak it for
    profile functions. Obviously if Titus wants to do that as well I
    won't object. =)

    @titus
    Copy link
    Mannequin Author

    titus mannequin commented Dec 19, 2007

    Added getprofile + tests, docs, as per reasonable request ;)

    @birkenfeld
    Copy link
    Member

    Committed as r60138. Thanks for the complete patch!

    @birkenfeld birkenfeld assigned birkenfeld and unassigned brettcannon Jan 20, 2008
    @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

    4 participants