Bugs item #746024, was opened at 2003-05-30 13:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=746024&group_id=14534
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Just van Rossum (jvr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Various exception troubles
Initial Comment:
>>> from Foundation import *
>>> class Foo(NSDictionary):
... def init(self):
... self = super(Foo, self).init()
... print "XXX in init()"
... return self
...
>>> d = Foo.alloc().initWithDictionary_({})
2003-05-30 13:40:49.766 python2.3[13648] PyObjC: Exception
during dealloc of proxy: NSInvalidArgumentException
Traceback (most recent call last):
File "<stdin>", line 1, in ?
SystemError: error return without exception set
>>> d = Foo.alloc().initWithDictiona_({}) # note the typo!!
2003-05-30 13:40:58.062 python2.3[13648] PyObjC: Exception
during dealloc of proxy: 'Foo' object has no attribute
'initWithDictiona_'
Traceback (most recent call last):
File "<stdin>", line 1, in ?
SystemError: error return without exception set
>>>
>>> class Doo(NSDictionary):
... def initWithObjects_forKeys_count_(self, o, k, c):
... print "XXX---"
... return super(Doo, self).initWithObjects_forKeys_count_(o, k, c)
...
>>> d = Doo.dictionaryWithDictionary_({})
Bus error
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=746024&group_id=14534
|