Guppy-PE/Heapy 0.1.10

2013-04-25 Thread sverker nilsson
sort out. o Some minor bug fixes License: MIT Guppy-PE 0.1.10 is available in source tarball format on the Python Package Index (a.k.a. Cheeseshop): http://pypi.python.org/pypi/guppy/0.1.10 The project homepage is on Sourceforge: http://guppy-pe.sourceforge.net Enjoy, Sv

Python assignments

2010-12-03 Thread Sverker Nilsson
Dear friends, This is Sverker from Sweden. You probably know me better as the guy who made Guppy/Heapy: http://guppy-pe.sf.net I am currently in the process of preparing version 0.1.10 with support for Python 2.7. I will let you know when it is updated. For those who don’t know, I work as a con

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-10 Thread Sverker Nilsson
On Wed, 2009-09-09 at 13:47 +0100, Chris Withers wrote: > Sverker Nilsson wrote: > > As the enclosing class or frame is deallocated, so is its attribute h > > itself. > > Right, but as long as the h hangs around, it hangs on to all the memory > it's used to build

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-08 Thread Sverker Nilsson
On Mon, 2009-09-07 at 16:53 +0100, Chris Withers wrote: > Sverker Nilsson wrote: > > I hope the new loadall method as I wrote about before will resolve this. > > > > def loadall(self,f): > > ''' Generates all objects from an open file f or a file nam

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-04 Thread Sverker Nilsson
On Fri, 2009-09-04 at 15:25 +0200, Sverker Nilsson wrote: > > However, I am aware of the extra initial overhead to do h=hpy(). I > discussed this in my thesis. "Section 4.7.8 Why not importing Use > directly?" page 36, > > http://guppy-pe.sourceforge.net/heap

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-04 Thread Sverker Nilsson
On Thu, 2009-09-03 at 10:05 +0100, Chris Withers wrote: > Raymond Hettinger wrote: > > In the first case, you would write: > >sets.extend(h.load(f)) > > yes, what I had was: > > for s in iter(h.load(f)): sets.append(s) > > ...which I mistakenly thought was working, but in in fact boils down

An iteration idiom (Was: Re: [Guppy-pe-list] loading files containing multiple dumps)

2009-09-01 Thread Sverker Nilsson
, 2009-08-31 at 17:57 +0100, Chris Withers wrote: > Sverker Nilsson wrote: > > It reads one Stat object at a time and wants to report something > > when there is no more to be read from the file. > > Hmm, am I right in thinking the above can more nicely be written as: >

Guppy-PE/Heapy 0.1.9 released

2009-06-24 Thread Sverker Nilsson
source tarball format on the Python Package Index (a.k.a. Cheeseshop): http://pypi.python.org/pypi/guppy/0.1.9 The project homepage is on Sourceforge: http://guppy-pe.sourceforge.net Enjoy, Sverker Nilsson Expertise in Linux, embedded systems, image processing, C, Python

How to print a sorted list as a multi-column table

2008-05-23 Thread Sverker Nilsson
Hi all, I would like to ask about opinions about the best way to format sorted tables of items for interactive use. I have begun to add interactive help to Guppy/Heapy (http://guppy-pe.sourceforge.net) because it lacks the usual ways for introspection (see for example http://www.pkgcore.org/trac/p

Re: py3k s***s

2008-04-17 Thread Sverker Nilsson
On Apr 18, 1:27 am, John Machin <[EMAIL PROTECTED]> wrote: > Diez B. Roggisch wrote: > >> And I have been benefiting from Python in general, so far. Thanks, > >> community. > > >> But now... I'll probably stop posting here for now, & I may stop other > >> things too. > > >> Just my 2c. > > > You kn

Re: py3k s***s

2008-04-17 Thread Sverker Nilsson
On Apr 18, 12:59 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > And I have been benefiting from Python in general, so far. Thanks, > > community. > > > But now... I'll probably stop posting here for now, & I may stop other > > things too. > > > Just my 2c. > > You know what I was just wonder

Re: py3k s***s

2008-04-17 Thread Sverker Nilsson
On Apr 17, 12:02 am, Carl Banks <[EMAIL PROTECTED]> wrote: > On Apr 16, 12:40 pm, Aaron Watters <[EMAIL PROTECTED]> wrote: > > > > > On Apr 16, 12:27 pm, Rhamphoryncus <[EMAIL PROTECTED]> wrote: > > > > On Apr 16, 6:56 am, Aaron Watters <[EMAIL PROTECTED]> wrote: > > > > > I don't get it. It ain't

Re: py3k s***s

2008-04-17 Thread Sverker Nilsson
On Apr 17, 12:02 am, Carl Banks <[EMAIL PROTECTED]> wrote: > On Apr 16, 12:40 pm, Aaron Watters <[EMAIL PROTECTED]> wrote: > > > > > On Apr 16, 12:27 pm, Rhamphoryncus <[EMAIL PROTECTED]> wrote: > > > > On Apr 16, 6:56 am, Aaron Watters <[EMAIL PROTECTED]> wrote: > > > > > I don't get it. It ain't

Re: py3k s***s

2008-04-15 Thread Sverker Nilsson
st changes, no progress. And yes, I am pd. Somebody compared it with MS stuff. Yes. Nothing personal, I appreciate Your comment. And all others. Sverker On Apr 15, 7:09 pm, Donn Cave <[EMAIL PROTECTED]> wrote: > In article > <[EMAIL PROTECTED]>, > Sverker Nilsson <

Re: py3k s***s

2008-04-14 Thread Sverker Nilsson
hopefully than just compatibility fixes. They take some work afterall. It seems hard with Python. Esp. 2 -> 3 Sverker On Apr 15, 5:41 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 14 Apr 2008 23:38:56 -0300, Sverker Nilsson <[EMAIL PROTECTED]> &g

Re: py3k s***s

2008-04-14 Thread Sverker Nilsson
On Apr 15, 3:50 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 14 Apr 2008 22:02:38 -0300, Sverker Nilsson <[EMAIL PROTECTED]> > escribió: > > > I tried out py3k on my project,http://guppy-pe.sf.net > > And what happened? > I've se

Re: py3k s***s

2008-04-14 Thread Sverker Nilsson
On Apr 15, 2:58 am, ajaksu <[EMAIL PROTECTED]> wrote: > On Apr 14, 8:10 pm, Sverker Nilsson <[EMAIL PROTECTED]> wrote:> do i dare to > open a thread about this? > > Yeah, you sure do! > > > come on you braver men > > Yeah! > > > we are at le

Re: py3k s***s

2008-04-14 Thread Sverker Nilsson
On Apr 15, 2:58 am, ajaksu <[EMAIL PROTECTED]> wrote: > On Apr 14, 8:10 pm, Sverker Nilsson <[EMAIL PROTECTED]> wrote:> do i dare to > open a thread about this? > > Yeah, you sure do! > > > come on you braver men > > Yeah! > > > we are at le

Re: py3k s***s

2008-04-14 Thread Sverker Nilsson
On Apr 15, 1:34 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Sverker Nilsson wrote: > > do i dare to open a thread about this? > > > come on you braver men > > > we are at least not bought by g***le > > > but why? others have said it so many times

py3k s***s

2008-04-14 Thread Sverker Nilsson
do i dare to open a thread about this? come on you braver men we are at least not bought by g***le but why? others have said it so many times i think :- but why? a few syntactic 'cleanups' for the cost of a huge rewrite of all the code that have been builtup from all the beginning when th

Guppy-PE / Heapy 0.1.8

2008-04-09 Thread Sverker Nilsson
I am happy to announce Guppy-PE 0.1.8 Guppy-PE is a library and programming environment for Python, currently providing in particular the Heapy subsystem, which supports object and heap memory sizing, profiling and debugging. It also includes a prototypical specification language, the Guppy Specif

Guppy-PE 0.1.5 released

2006-10-12 Thread Sverker Nilsson
download the Guppy-PE source code, see: http://guppy-pe.sourceforge.net My master thesis, "Heapy: A Memory Profiler and Debugger for Python" has now been approved and is available here: http://guppy-pe.sourceforge.net/heapy-thesis.pdf Best regards, Sverker Nilsson -- http://mail.

Re: memory usage of a specific function

2006-01-04 Thread Sverker Nilsson
Stephen Kellett wrote: > In message <[EMAIL PROTECTED]>, > > Sverker Nilsson <[EMAIL PROTECTED]> writes > [Note that actually it was Hermann Maier that wrote the following but as quoted, it may look like it was I that wrote it.] > >> i need to find out the me

Re: memory usage of a specific function

2006-01-04 Thread Sverker Nilsson
Hermann Maier wrote: > hi, > > i need to find out the memory usage of a specific function that i use in > my program. this function does some recursive calculations and i want my > program to display the amount of memory the function used to calculate a > specific value. > > thx I was thinking th

Re: Compiling Guppy-PE extension modules

2005-12-03 Thread Sverker Nilsson
> "Claudio Grondi" <[EMAIL PROTECTED]> wrote: I don't know if it applies here, but in this context the extern keyword > comes to my mind. [snip extracts from Microsoft docs] Perhaps. But I suspect it isn't that simple since ... I'd think even if I don't use the extern keyword

Re: Compiling Guppy-PE extension modules

2005-12-02 Thread Sverker Nilsson
"Claudio Grondi" <[EMAIL PROTECTED]> wrote: > but the problem with sets.c remains: > > C:\VisualC++NET2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /G7 /GX > /DNDEBUG -IE:\Python24\include -IE:\Python24\PC /Tcsrc/sets/sets.c > /Fobuild\temp.win32-2.4\Re > lease\src/sets/sets.obj > sets.c > src\sets\s

Re: Compiling Guppy-PE extension modules

2005-12-01 Thread Sverker Nilsson
"Claudio Grondi" <[EMAIL PROTECTED]> wrote: > Beside the problem with the multiline strings in sets.c I was getting also: > > src\sets\sets.c(70) : error C2099: initializer is not a constant > src\sets\sets.c(71) : error C2099: initializer is not a constant > src\sets\sets.c(71) : warning C4028: f

Compiling Guppy-PE extension modules

2005-11-29 Thread Sverker Nilsson
gh this or otherwise convert the files as needed. Otherwise, I guess I'll just have to hand-hack around this problem, write a conversion script, or whatever. I will see. Sorry for any inconvenience so far. Regards, Sverker Nilsson PS. I know it's not ANSI-correct but why do we have to work