Message91941
I have the following for statement:
lenc = len(children)
for ic in range(lenc):
print "ic: ", ic
child = children[ic]
print " -", ic, child.__class__.__name__
print "XXX"
except:
try:
exctype, value = sys.exc_info()[:2]
print "exception", exctype, value
traceback.print_exc()
print range(lenc)
except:
print "exception X"
print "loop done"
When I execute it, I get the following output:
- count changed, old: -1 new: 4
ic: 0
- 0 XGRect
XXX
ic: 1
- 1 PanelEntry
XXX
ic: 2
- 2 ScrollView
XXX
ic: 3
- 3 CloseButton
XXX
exception <type 'exceptions.NotImplementedError'> method not implemented
Traceback (most recent call last):
File "/home/stpuser/prizm/lib/python2.6/libprizm/pui/atspi.py", line
187, in _get_n_children
for ic in range(lenc):
NotImplementedError: method not implemented
[0, 1, 2, 3]
loop done
Why am I getting the NotImplementedError exception? This looks like a
bug to me (I am pretty new to Python). |
|
Date |
User |
Action |
Args |
2009-08-24 21:25:11 | sbq | set | recipients:
+ sbq |
2009-08-24 21:25:11 | sbq | set | messageid: <1251149111.84.0.211191712144.issue6779@psf.upfronthosting.co.za> |
2009-08-24 21:25:10 | sbq | link | issue6779 messages |
2009-08-24 21:25:10 | sbq | create | |
|