Re: Index with multiple parameters?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Index with multiple parameters?
- From: Matthew Paul Del Buono <delbu9c1@...>
- Date: 2008年2月19日 20:01:32 -0500 (EST)
>vertex_vector[20, 'x'] = 2.5
Would vertex_vector(20, 'x') be a suitable solution? If so, you just have to implement the __call metamethod. I disagree with your "multi-indexing" as, personally, it seems less readable; then again, I'm probably not one of your target users.
Good luck,
-- Matthew P. Del Buono