> Rick King wrote:
>
> >>>>a=vw.select(2,4)
> >>>>
> I think you are using select incorrectly.  Select is pretty similar to
> "find" but it returns a view object instead of an index.
>

I am very confused now. What I was doing is reading your doc page at
http://jura.wi.mit.edu/people/kelley/tutorial/python.html#view.filter
and trying out the code samples in PyShell. I realize that select returns a
view. The part that doesn't work is this (copied off of your page from the
discussion about view.indices):

"""
The proper way to get this type of subset is:

    subset = view.select(10,19)
    indices = view.indices(subset)
"""

I created a simple view and tried this and got the traceback. All the docs
(the Metakit docs, the PyShell completion tip) indicate that I should be
able to call select like this, although it does seem a bit odd from a Python
point of view because it is overloading the select method. I think I don't
understand the docs.

BTW, your page has been very helpful - I just wish I'd known about it
sooner!

Thanks for any help.
-Rick

_____________________________________________
Metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to