osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Losing words


On Tue, Apr 2, 2019 at 4:21 AM John Doe <john at johniedoe.com> wrote:
>
> On 2019-04-01, Joel Goldstick <joel.goldstick at gmail.com> wrote:
> >>
> >> def text():
> >>     mess = input("> ")
> >>     s.send(bytes("PRIVMSG " + " "+ channel + " " +  mess  + "\n", "UTF-8"))
> >>
> >>     text()
> >>
> >
> > Is this a typo or are you calling text() from within text()?
> >>
> Indeed I do :-)
> I was thinking on another way but nothing came up to me but guess what?
> It works. What else I could do?

Use a loop, not recursion :)

ChrisA