title: Trying to split a string in Python 3, get 'str' does not support buffer interface
body: <p>So I'm trying to take data from a website and parse it into an object. The data is separated by vertical bars ("|"). However, when I split my string using .split('|'), I get</p>
  
  <pre><code>TypeError: 'str' does not support the buffer interface
  </code></pre>
  
  <p>I am still attempting to learn Python. I have done some digging on this error but every example I could find related to sending or receiving data and there was a lot of jargon I was unfamiliar with. One solution said to use .split(b'|'), but then this somehow turned my string into a byte and prevented me from printing it in the final line.</p>
  
  <p>Below is my code. Any help you can offer would be greatly appreciated!</p>
  
  <pre><code>with urllib.request.urlopen('ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqtraded.txt') as response:
      html = response.read()
  rawStockList = html.splitlines()
  
  stockList = []
  for i in rawStockList:
      stockInfo = i.split('|')
      try:
          stockList.append(Stock(stockInfo[1], stockInfo[2], stockInfo[5], stockInfo[10], 0))
      except IndexError:
          pass
  print([str(item) for item in stockList])
  </code></pre>