[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: Tue, 19 Feb 2008 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