Bugs item #3603451, was opened at 2013-02-05 12:09
Message generated for change (Comment added) made by rupole
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3603451&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wesley Tanaka (wtanaka)
Assigned to: Nobody/Anonymous (nobody)
Summary: __getitem__ stopped getting created between v.214 => v.218
Initial Comment:
See:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3603059&group_id=78018
for background
I confirmed that the Pages.py file in gen_py did have a __getitem__ method when generated by version 214, and did not have a __getitem__ method when generated by version 218.
I'm filing this bug per the thread in https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3603059&group_id=78018
----------------------------------------------------------------------
>Comment By: Roger Upole (rupole)
Date: 2013-02-07 06:59
Message:
Probably a result of this commit:
http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/rev/2ad7e595084e
It removed support for old-style __getitem__ iterators. They caused a
number of problems, chiefly in that the result returned by object[x] may be
different from the result returned by object.Item(x) if the object doesn't
use zero-based indexing as python does. Also, the way the iterator was
cached
could cause a stale result if the object changed. Right now, __getitem__
is only generated if the object has an Item method.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3603451&group_id=78018
|