Checking mail?

Cameron Laird claird at lairds.us
Sat Jul 10 14:09:56 EDT 2004


In article <mailman.203.1089464076.5135.python-list at python.org>,
Dag Hansteen <d-hanst at online.no> wrote:
			.
			.
			.
>    numbers = email.list()
>    count = 0
>    for n in numbers:
>        count = count + 1
>    print "You have", str(count), "new e-mails in inbox."
			.
			.
			.
How's it happen you prefer that to
  print "You have %d new e-mails in inbox." % len(email.list())
?



More information about the Python-list mailing list