[Tutor] adding users to tweets on a list
Chris Down
chris at chrisdown.name
Tue Aug 6 19:44:30 CEST 2013
On 2013-08-06 19:42, Chris Down wrote:
> All that needs to happen is to move the pop to the top of the MAX_LENGTH check:
>
> while len(new_message) + len(add) <= MAX_LENGTH:
...or, better, remove the if...break and just do:
while users and len(new_message) + len(add) <= MAX_LENGTH:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20130806/ea4b189a/attachment.pgp>
More information about the Tutor
mailing list