Permalink
Browse files

cause Matrix.columns to be redefined to just return Matrix._columns a…

…fter the columns have been computed.
  • Loading branch information...
1 parent bb2b2f4 commit 188935c4788ff14fe51475a5292d198b10465e4b @tarballs-are-good tarballs-are-good committed Oct 24, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 matrix.py
View
@@ -34,6 +34,7 @@ def columns(self):
rows = self.rows()
self._columns = [[i[j] for i in rows]
for j in xrange(len(rows[0]))]
+ self.columns = lambda s: s._columns
return self._columns
def field(self):

0 comments on commit 188935c

Please sign in to comment.