IronPython and collections access

Lawrence Oluyede raims at
Wed Aug 18 22:31:40 CEST 2004

In data Wed, 18 Aug 2004 20:17:13 GMT, Hoang Do ha scritto:

> import System
> x = System.Collections.BitArray(4)
> x[0]
> The error message is:
> 'System.Collections.BitArray' object has no attribute '__getitem__'.   This
> is the same error with any classes derived from CollectionsBase.

try x.Get(yourindex)

Lawrence (l dot oluyede at virgilio dot it)
"If the implementation is hard to explain, it's a bad idea."
from The Zen of Python by Tim Peters

More information about the Python-list mailing list