Re: [Python-ideas] api suggestions for the cProfile module

2017-01-11 Thread Giampaolo Rodola'
On Wed, Dec 21, 2016 at 1:50 AM, Thane Brimhall wrote: > I use cProfile a lot, and would like to suggest three backwards-compatible > improvements to the API. > > 1: When using cProfile on a specific piece of code I often use the > enable() and disable() methods. It

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Thane Brimhall
That is great news because I'd be happy to do the implementation myself if it only requires Python. (Sadly I'm not proficient in C.) I'll be coding over the next couple days preparing an example implementation, then I will open an issue on the bug tracker. /Thane On Tuesday, January 10, 2017

[Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Jelle Zijlstra
2017-01-10 8:57 GMT-08:00 Ethan Furman : > On 01/10/2017 08:36 AM, Thane Brimhall wrote: > > Does anyone have thoughts on this topic? I assume the silence is because >> this suggestion is too trivial to matter. >> > > Sometimes it's just a matter of timing. :) > > I use

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Thane Brimhall
Thanks for getting back to me on this! Yes timing can be a big factor. :) Turns out this gave me opportunity to look a little further back in the archives and someone suggested a very similar API change in November, so maybe more people than just me would want a feature like this. Good call on

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Gregory P. Smith
At a glance, all of these sound like good modernizing enhancements for cprofile. It just takes someone to contribute the work. :) On Tue, Jan 10, 2017, 8:57 AM Ethan Furman wrote: > On 01/10/2017 08:36 AM, Thane Brimhall wrote: > > > Does anyone have thoughts on this topic?

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Ethan Furman
On 01/10/2017 08:36 AM, Thane Brimhall wrote: Does anyone have thoughts on this topic? I assume the silence is because this suggestion is too trivial to matter. Sometimes it's just a matter of timing. :) I use cProfile a lot, and would like to suggest three backwards-compatible

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Thane Brimhall
I hate to be "that guy" but... bump! Does anyone have thoughts on this topic? I assume the silence is because this suggestion is too trivial to matter. /Thane On Tuesday, December 20, 2016 at 5:51:49 PM UTC-7, Thane Brimhall wrote: > > I use cProfile a lot, and would like to suggest three

[Python-ideas] api suggestions for the cProfile module

2016-12-20 Thread Thane Brimhall
I use cProfile a lot, and would like to suggest three backwards-compatible improvements to the API. 1: When using cProfile on a specific piece of code I often use the enable() and disable() methods. It occurred to me that this would be an obvious place to use a context manager. 2: Enhance the