Re: python segfaulting, MemoryError (PyQt)

2009-04-29 Thread Denis L
"Phil Thompson" wrote in message news:mailman.4719.1240945001.11746.python-l...@python.org... > On Tue, 28 Apr 2009 19:07:30 +0200, "Denis L" wrote: >> "Phil Thompson" wrote in message >> news:mailman.4699.1240932385.11746.python-l...@python.org... >> >>> If there was a bug with lambda slots it

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Phil Thompson
On Tue, 28 Apr 2009 19:07:30 +0200, "Denis L" wrote: > "Phil Thompson" wrote in message > news:mailman.4699.1240932385.11746.python-l...@python.org... > >> If there was a bug with lambda slots it's been fixed by now. > > I just tried it and I'm getting the same errors with regular functions. >

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Denis L
"Phil Thompson" wrote in message news:mailman.4699.1240932385.11746.python-l...@python.org... > If there was a bug with lambda slots it's been fixed by now. I just tried it and I'm getting the same errors with regular functions. Could you try running the code bellow? What output you are gettin

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Phil Thompson
On Tue, 28 Apr 2009 17:10:51 +0200, "Denis L" wrote: > "Phil Thompson" wrote in message > news:mailman.4690.1240925876.11746.python-l...@python.org... >> On Tue, 28 Apr 2009 14:54:41 +0200, "Denis L" wrote: >>> "Phil Thompson" wrote in message >>> news:mailman.4664.1240907352.11746.python-l...

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Denis L
"Phil Thompson" wrote in message news:mailman.4690.1240925876.11746.python-l...@python.org... > On Tue, 28 Apr 2009 14:54:41 +0200, "Denis L" wrote: >> "Phil Thompson" wrote in message >> news:mailman.4664.1240907352.11746.python-l...@python.org... >>> On Tue, 28 Apr 2009 03:53:34 +0200, "Deni

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Diez B. Roggisch
Phil Thompson wrote: > On Tue, 28 Apr 2009 11:18:31 +0200, "Diez B. Roggisch" > > wrote: As the documentation of pyqt clearly states, connecting signals doesn't increment the refcount on a passed slot, thus you need to keep a reference to your slots around. >>> >>> But it does i

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Phil Thompson
On Tue, 28 Apr 2009 14:54:41 +0200, "Denis L" wrote: > "Phil Thompson" wrote in message > news:mailman.4664.1240907352.11746.python-l...@python.org... >> On Tue, 28 Apr 2009 03:53:34 +0200, "Denis L" wrote: >>> Hello, >>> >>> I'm experiencing odd errors on both windows and linux with the follow

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Denis L
"Phil Thompson" wrote in message news:mailman.4664.1240907352.11746.python-l...@python.org... > On Tue, 28 Apr 2009 03:53:34 +0200, "Denis L" wrote: >> Hello, >> >> I'm experiencing odd errors on both windows and linux with the following >> code: >> >> import sys >> from PyQt4.QtCore import * >>

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Phil Thompson
On Tue, 28 Apr 2009 11:18:31 +0200, "Diez B. Roggisch" wrote: >>> As the documentation of pyqt clearly states, connecting signals doesn't >>> increment the refcount on a passed slot, thus >>> you need to keep a reference to your slots around. >> >> But it does increase the refcount for lambda s

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Diez B. Roggisch
>> As the documentation of pyqt clearly states, connecting signals doesn't >> increment the refcount on a passed slot, thus >> you need to keep a reference to your slots around. > > But it does increase the refcount for lambda slots. Has that changed? It has been a while, but I've been bitten b

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Phil Thompson
On Tue, 28 Apr 2009 09:35:31 +0200, "Diez B. Roggisch" wrote: > Denis L schrieb: >> Hello, >> >> I'm experiencing odd errors on both windows and linux with the following >> code: >> >> import sys >> from PyQt4.QtCore import * >> from PyQt4.QtGui import * >> >> class Options(QDialog): >> de

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Phil Thompson
On Tue, 28 Apr 2009 03:53:34 +0200, "Denis L" wrote: > Hello, > > I'm experiencing odd errors on both windows and linux with the following > code: > > import sys > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > class Options(QDialog): > def __init__(self, values): > QDi

Re: python segfaulting, MemoryError (PyQt)

2009-04-28 Thread Diez B. Roggisch
Denis L schrieb: Hello, I'm experiencing odd errors on both windows and linux with the following code: import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class Options(QDialog): def __init__(self, values): QDialog.__init__(self) self.values = values