Re: error

Discussion in 'Python' started by woooee, Nov 6, 2012.

  1. woooee

    woooee Guest

    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.
     
    woooee, Nov 6, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hfk0
    Replies:
    2
    Views:
    21,675
  2. JavaQueries
    Replies:
    1
    Views:
    3,675
    John C. Bollinger
    Mar 1, 2005
  3. Balaji
    Replies:
    3
    Views:
    10,115
  4. Bishop
    Replies:
    1
    Views:
    791
    Bishop
    Feb 24, 2007
  5. juvi
    Replies:
    3
    Views:
    1,054
    Alexey Smirnov
    Jan 22, 2009
Loading...

Share This Page