title: AttributeError: 'builtin_function_or_method' object has no attribute 'split' 2
body: <p>I need help with this error: "AttributeError: 'builtin_function_or_method' object has no attribute 'split' 2""</p>
  
  <pre><code>import operator
  from numpy import *
  def loadDataSet(filename):
      dataMat= []; labelMat= []
      fr = open(filename)
      for line in fr.readlines():
          lineArr = line.strip.split('\t')
          dataMat.append([float(lineArr[0]), float(lineArr[1])])
          labelMat.append(float(lineArr[2]))
      return dataMat, labelMat
  
  def selectJrand(i, m):
      j=i
      while (j == i):
          j=int(random.uniform(0, m))
      return j
  
  def clipAlpha(aj, H, L):
      if aj &gt; H:
          aj=H
      if L &gt; aj:
          aj = L
      return aj
  </code></pre>
  
  <p><strong>The bug as follows:</strong></p>
  
  <pre><code>dataArr, labelArr = svmMLiA.loadDataSet('testSet.txt')
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "F:\python2.7.12\lib\svmMLiA.py", line 5, in loadDataSet
      lineArr = line.strip.split('\t')
  AttributeError: 'builtin_function_or_method' object has no attribute 'split'
  </code></pre>