tuple.index()
Hendrik van Rooyen
mail at microcorp.co.za
Thu Dec 21 23:57:06 EST 2006
"Nick Maclaren" <nmm1 at cus.cam.ac.uk> wrote:
> "Hendrik van Rooyen" <mail at microcorp.co.za> writes:
> |> When I looked at the above, I went "tilt" -
>
> Yes, you are confused :-) Neither the agents nor strings take the
> other as 'arguments', but are effectively methods of the I/O object.
> Let's consider a modern example: a text editor with hyperlink
> facilities. Note that I am referring to the hyperlinks of the kind
> that can occur anywhere, and not those associated with a particular,
> usually highlighted, word.
>
> Text is a sequence of letters/words/sentences/paragraphs/markup/etc.;
> let's assume words, as strings, for the purpose of argument. Words
> can be inserted, deleted, changed etc.
>
> Hyperlinks are agents and can be added at any point. Their only
> relationship with the text is the position at which they occur (i.e.
> none or more may occur between any two consecutive words).
>
Thanks that helps - I really had the queen cat by the balls...
- Hendrik
More information about the Python-list
mailing list