error

inshu chauhan insideshoes at gmail.com
Thu Nov 8 08:47:37 EST 2012


Actually data is neither a zanzibar nor a class nor a list.. its a yml
image. with pixels
I am trying to access pixels of a 3D image through this programme..





On Tue, Nov 6, 2012 at 8:59 PM, woooee <woooee at gmail.com> wrote:

> From this line, "data" appears to be a class
>     if 0 < ix < data.width and 0 < iy < data.height:
> From this line, "data" appears to be a list, although a two
> dimensional list would be accessed as data[ix][iy]
>         point = data[ix, iy]
>
> Also, returning a list from a function is a matter of preference.
> Some people argue that it should be returned to make it obvious.  If
> you do not know the difference between what is mutable and what is not
> mutable, then return everything until you do.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121108/08e05136/attachment.html>


More information about the Python-list mailing list