On Thu, 5 Mar 2015 23:36:47 -0700, Ian Kelly
wrote:
>
>I'm not following what it is that you want to accomplish in this
>example by modifying the slice object.
Yeah. That code doesn't show anything. It was just meant to illustrate
what I was doing, not how. But in retrospect it just made my post
On Thu, Mar 5, 2015 at 4:57 PM, Mario Figueiredo wrote:
> What is the rationale behind making the slice class data attributes
> readonly?
>
> I've built a __getitem__ method for a Map class that contains a list
> of Cell instance objects. __getitem__ maps this list into a matrix::
>
> # get ce
What is the rationale behind making the slice class data attributes
readonly?
I've built a __getitem__ method for a Map class that contains a list
of Cell instance objects. __getitem__ maps this list into a matrix::
# get cell at cartesian coordinates 12, 4
# will map to the 1048th positi