[Pyobjc-dev] Exceptions on calling super
Brought to you by:
ronaldoussoren
From: Dirk S. <dir...@me...> - 2009-09-17 15:54:21
|
Hi all, We recently moved our app from PyObjC 1.4 to 2.2 and now get a lot of exceptions like this: TypeError??: super(type, obj): obj must be an instance or subtype of type These happen in any Python subclass of a Cocoa superclass, but only occasionally. I'm not completely clear how to reproduce the issue, but it only happens when we override an initializer and have a call to: super(classNameOfOurSubClass, self).init() # or any other initializer. Does anyone have a clue what might be going on? We're targetting Leopard and are currently still running on PyObjC 2.2b6 (because getting later releases to actually build the app on Leopard has proven to be quite hard, and we're on a tight schedule, I haven't upgraded to something newer yet). Thanks in advance! - Dirk Stoop Sofa |