title: TypeError: 'builtin_function_or_method' object is unsubscriptable
body: <p>I'm getting a strange error from the Python interpreter when I run this code:</p>
  
  <pre><code>def make_map():
      map = [[Tile(0, 0) for col in range(MAP_WIDTH)] for row in range(MAP_HEIGHT)]
  
      for x in range(MAP_WIDTH):
          for y in range(MAP_HEIGHT):     
              map[x][y].tileType = round((libtcod.noise_perlin(noise2d,[y/MAP_WIDTH,x/MAP_HEIGHT])*100), 0)
  </code></pre>
  
  <p>It's returning this in the terminal:</p>
  
  <pre><code>TypeError: 'builtin_function_or_method' object is unsubscriptable 
  </code></pre>
  
  <p>The traceback is also pointing to this function:</p>
  
  <pre><code>def render_all():
      global color_light_wall
      global color_light_ground
  
      #go through all tiles, and set their background color
      for y in range(MAP_HEIGHT):
          for x in range(MAP_WIDTH):
              tileType = map[x][y].tileType
              if tileType&gt;30:
                  libtcod.console_set_back(con, x, y, color_dark_wall, libtcod.BKGND_SET )
              else:
                  libtcod.console_set_back(con, x, y, color_dark_ground, libtcod.BKGND_SET )
  
      #draw all objects in the list
      for object in objects:
          object.draw()
  
      #blit the contents of "con" to the root console
      libtcod.console_blit(con, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0)
  </code></pre>
  
  <p>I think they're both related to this line:  <code>tileType = map[x][y].tileType</code> but if somebody could shed some light on this, I'd appreciate it.</p>
  
  <p>Thanks, Elliot Bonneville</p>
  
  <p>EDIT: I forgot to include my Tile class code and the full traceback:</p>
  
  <pre><code>class Tile:
      #a tile of the map and its properties
      def __init__(self, tileType, blocked):
          self.tileType = tileType
          self.blocked = blocked
  </code></pre>
  
  <p>Traceback:</p>
  
  <pre><code>  File "kindred.py", line 123, in &lt;module&gt;
      render_all()
    File "kindred.py", line 64, in render_all
      tileType = map[x][y].tileType
  TypeError: 'builtin_function_or_method' object is unsubscriptable
  </code></pre>