Re: BeautifulSoup modified to use weak refs and avoid circular links.

2007-03-01 Thread shredwheat
The timeit code disables the garbage collector while running. I ran the tests on my system after adding the following lines to t1() and t2(). del base gc.collect() Original timetest.py: Using proxy 100 loops, best of 3: 4.45 msec per loop Call to dummy proxy 100 loops, best of 3: 2.24

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread shredwheat
When your programs stops with the error, it should also be printing a stack trace. This is a list of all the functions that have been called when Python had the problem. You shouldn't have to do anything extra to get the stack trace. -- http://mail.python.org/mailman/listinfo/python-list

Re: Vector, matrix, normalize, rotate. What package?

2007-02-27 Thread shredwheat
On Feb 27, 2:49 pm, "Mattias Brändström" <[EMAIL PROTECTED]> wrote: > I'm trying to find what package I should use if I want to: > > 1. Create 3d vectors. > 2. Normalize those vectors. > 3. Create a 3x3 rotation matrix from a unit 3-d vector and an angle in > radians. > 4. Perform matrix multiplica

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread shredwheat
On Feb 27, 3:35 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > I don't see any QPaintDevice here. Where does that come from? You need to > give more information, a stack trace and a reduced example exhibiting the > behaviour. QWidget is derived from QPaintDevice, under Qt, no widgets can be i

Re: Are weak refs slower than strong refs?

2007-02-25 Thread shredwheat
On Feb 24, 10:17 pm, John Nagle <[EMAIL PROTECTED]> wrote: >Are weak refs slower than strong refs? I've been considering making the > "parent" links in BeautifulSoup into weak refs, so the trees will release > immediately when they're no longer needed. In general, all links back > towards the