Re: [Python-Dev] ast status, memory leaks, etc

2005-11-19 Thread Neal Norwitz
I lied a bit in my previous status. I said that the refs used at the end of a regression test run from a clean state (*) were down to 380k. Well if I had remembered to remove all the .pyc's this would have been true. Here's the numbers now: Before AST: r39757 [362766 refs] Before AST: svn up [3

Re: [Python-Dev] s/hotshot/lsprof

2005-11-19 Thread Brett Cannon
Just for everyone's FYI while we are talking about profilers, Floris Bruynooghe (who I am cc'ing on this so he can contribute to the conversation), for Google's Summer of Code, wrote a replacement for 'profile' that uses Hotshot directly. Thanks to his direct use of Hotshot and rewrite of pstats

Re: [Python-Dev] s/hotshot/lsprof

2005-11-19 Thread Martin v. Löwis
Armin Rigo wrote: > If anyone feels like this is a bad idea, please speak up. As stated, it certainly is a bad idea. To make it a good idea, there should also be some commitment to maintain this library for a number of years. So who would be maintaining it, and what are their plans for doing so?

Re: [Python-Dev] s/hotshot/lsprof

2005-11-19 Thread Aahz
On Sat, Nov 19, 2005, Armin Rigo wrote: > > If anyone feels like this is a bad idea, please speak up. This sounds like a good idea, and your presentation already looks almost like a PEP. How about going ahead and making it a formal PEP, which will make it easier to push through the dev process? -

Re: [Python-Dev] How to stay almost backwards compatible with all these new cool features

2005-11-19 Thread Aahz
On Sat, Nov 19, 2005, Gregory Petrosyan wrote: > > Here's some of my ideas about subject. Maybe some of them are rather > foolish, others -- rather simple and common... I just want to add my 2 > cents to Python development. This message was more appropriate for comp.lang.python; most of what you t

Re: [Python-Dev] Patch Req. # 1351020 & 1351036: PythonD modifications

2005-11-19 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > I would appreciate feedback concerning these patches before the next > "PythonD" (for DOS/DJGPP) is released. PEP 11 says that DOS is not supported anymore since Python 2.0. So I am -1 on reintroducing support for it. Regards, Martin

Re: [Python-Dev] str.dedent

2005-11-19 Thread Noam Raphael
On 11/19/05, Steven Bethard <[EMAIL PROTECTED]> wrote: > > You are missing an important point here: There are intentionally no line > > breaks in this string; it must be a single line, or else showerror will > > break it in funny ways. So converting it to a multi-line string would > > break it, ded

Re: [Python-Dev] str.dedent

2005-11-19 Thread Steven Bethard
On 11/18/05, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Noam Raphael wrote: > > I just wanted to add another use case: long messages. Consider those > > lines from idlelib/run.py:133 > > > > msg = "IDLE's subprocess can't connect to %s:%d. This may be due "\ > > "to your

[Python-Dev] s/hotshot/lsprof

2005-11-19 Thread Armin Rigo
Hi! The current Python profilers situation is a mess. 'profile.Profile' is the ages-old pure Python profiler. At the end of a run, it builds a dict that is inspected by 'pstats.Stats'. It has some recent support for profiling C calls, which however make it crash in some cases [1]. And of cours

[Python-Dev] How to stay almost backwards compatible with all these new cool features

2005-11-19 Thread Gregory Petrosyan
Here's some of my ideas about subject. Maybe some of them are rather foolish, others -- rather simple and common... I just want to add my 2 cents to Python development. 1) What is the reason for making Python backwards incompatible (let it be just 'BIC', and let 'BC' stands for 'backwards compatib