[Python-ideas] Add __main__ for uuid, random and urandom

Terry Reedy tjreedy at udel.edu
Sat Apr 2 15:13:24 EDT 2016

On 4/2/2016 2:37 AM, Koos Zevenhoven wrote:

>   python -e "random.randint(0,10)"
> which would automatically import stdlib if their names appear in the
> expression.

I like this much better than cluttering a arbitrary selection of modules 
with main functions with an arbitrary selection functions whose values 
are printed.

Terry Jan Reedy

More information about the Python-ideas mailing list