[PyQt] PyQt4 Feature request: support for __dict__ property
Phil Thompson
phil at riverbankcomputing.com
Wed Mar 11 08:52:24 GMT 2009
On Wed, 11 Mar 2009 11:26:28 +0300, Алексей Никитенко
<non-alex at yandex.ru> wrote:
> Hi!
> A use my own tiny framework based on PyProtocols.
> I declare adapters for some PyQt4 objects (QTableWidget, for example)
> and use interfaces in my code.
> It's a little bit exotic, but provides more flexible and readable code.
> New snapshots of PyQt4.5 dropped QObject.__dict__ property, and I cannot
> declare adapter for specific PyQt object any more.
> Will be nice to fix that.
> If maintaining __dict__ propery is memory expensive, maybe lazy
> initialization will work?
PyQt objects now work exactly the same as regular Python objects (eg.
object), so QObject.__dict__ exists but QObject().__dict__ doesn't.
Can you explain in more detail why you need it?
Phil
More information about the PyQt
mailing list