What is it that you think makes it Unix specific?

Que Prime wrote:
>
> This script appears to be written for Unix systems.  Is there a way to 
> get it to work for PythonWin?
>
> from random import randint, choice
> from string import lowercase
> from sys import maxint
> from time import ctime
>
> doms = ( 'com', 'edu', 'net', 'org', 'gov' )
>
> for i in range(randint(5, 10)):
>     dtint = randint(0, maxint-1)    #pick date
>     dtstr = ctime(dtint)            #date string
>
>
>     shorter = randint(4,7)          #login shorter
>     em = ''
>     for j in range(shorter):        #generate login
>         em += choice(lowercase)
>
>     longer = randint(shorter, 12)   #domain longer
>     dn = ''
>     for j in range(longer):         #create domain
>         dn += choice(lowercase)
>
>     print '%s::[EMAIL PROTECTED]::%d-%d-%d' % (dtstr, em, dn, choice(doms), 
> dtint, shorter, longer) 
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>   

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to