phrase splitting

def __str__(self) is what you're thinking of.

On Wed, Dec 3, 2014 at 2:22 PM, Joshua Hou <notifications@github.com> wrote:

> In haiku.py:
>
> > @@ -11,10 +12,12 @@ class Haiku:
> >
> >      def __init__(self, text):
> >          self.text = self.tokenizer.tokenize(text)
> > -        self.phrases = self.phrases()
> > +        self.phrases = None
>
> if it's not initialized to something, the to_s further down will fail.
> come to think of it, doesn't python have a *str* magic function that
> makes str(obj) work? to_s is very rubyistic
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/newtype/didyouhaiku/pull/3/files#r21270421>.
>