This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbq
Recipients sbq
Date 2009-08-24.21:25:10
SpamBayes Score 2.221214e-09
Marked as misclassified No
Message-id <1251149111.84.0.211191712144.issue6779@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2009-08-24 21:25:11sbqsetrecipients: + sbq
2009-08-24 21:25:11sbqsetmessageid: <1251149111.84.0.211191712144.issue6779@psf.upfronthosting.co.za>
2009-08-24 21:25:10sbqlinkissue6779 messages
2009-08-24 21:25:10sbqcreate