[Tutor] adding users to tweets on a list
Saad Javed
sbjaved at gmail.com
Tue Aug 6 20:11:27 CEST 2013
> I don't see how that differs from your expected output...?
>
> > I want all users added to the tweet. E.g. if 4 users can be added to the
> > tweet before reaching the limit, return three tweets...first two with 4
> users
> > attached and the last one with three.
>
> You hit the 140 character limit if another user is added, so it resets to
> the
> base message and adds the next user(s) as possible.
>
> What is your expected output for that sample input?
>
Oops! My bad. The fix worked as expected. The output fooled me into
thinking it was skipping a user every second line. Actually MAX_LENGTH was
being reached in each case. I'll check the tweet.py you posted.
Thanks again!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130806/6a7f2a0a/attachment.html>
More information about the Tutor
mailing list