2007/1/29, Leif K-Brooks <[EMAIL PROTECTED]>:

NoName wrote:
> from random import choice
> import string
> print ''.join([choice(string.letters+string.digits) for i in
> range(1,8)])
>
> !!generate password once :(

So add a while true: line.

> who can write this smaller or without 'import'?


Being very short in price of readability isn't one of the Python's main
goals.

--------------------------------
Olexandr Melnyk,
http://omelnyk.net/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to