[Python-ideas] Add __main__ for uuid, random and urandom
Terry Reedy
tjreedy at udel.edu
Sat Apr 2 15:13:24 EDT 2016
More information about the Python-ideas mailing list
Sat Apr 2 15:13:24 EDT 2016
- Previous message (by thread): [Python-ideas] Add __main__ for uuid, random and urandom
- Next message (by thread): [Python-ideas] Dictionary views are not entirely 'set like'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-ideas] Add __main__ for uuid, random and urandom
- Next message (by thread): [Python-ideas] Dictionary views are not entirely 'set like'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list