[issue1648] add new function, sys.gettrace

2008-01-20 Thread Georg Brandl

Georg Brandl added the comment:

Committed as r60138. Thanks for the complete patch!

--
assignee: brett.cannon -> georg.brandl
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1648] add new function, sys.gettrace

2007-12-18 Thread Titus Brown

Titus Brown added the comment:

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

Added file: http://bugs.python.org/file8991/gettrace+getprofile.diff

__
Tracker <[EMAIL PROTECTED]>

__

gettrace+getprofile.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1648] add new function, sys.gettrace

2007-12-18 Thread Brett Cannon

Brett Cannon added the comment:

On Dec 18, 2007 12:14 PM, Guido van Rossum <[EMAIL PROTECTED]> 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.  =)

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1648] add new function, sys.gettrace

2007-12-18 Thread Guido van Rossum

Guido van Rossum added the comment:

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

--
nosy: +gvanrossum

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1648] add new function, sys.gettrace

2007-12-18 Thread Brett Cannon

Changes by Brett Cannon:


--
assignee:  -> brett.cannon

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1648] add new function, sys.gettrace

2007-12-18 Thread Christian Heimes

Changes by Christian Heimes:


--
keywords: +patch
priority:  -> normal
type: behavior -> rfe

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1648] add new function, sys.gettrace

2007-12-17 Thread Titus Brown

New submission from Titus Brown:

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.

--
components: Library (Lib)
files: gettrace.diff
messages: 58725
nosy: brett.cannon, titus
severity: minor
status: open
title: add new function, sys.gettrace
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file8982/gettrace.diff

__
Tracker <[EMAIL PROTECTED]>

__

gettrace.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com