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

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Apr 1 18:47:44 EDT 2016


On 01/04/2016 21:42, Ethan Furman wrote:
> On 04/01/2016 01:35 PM, Joao S. O. Bueno wrote:
>
>> Well...actually, really recently (Tuesday), I did
>> python3 -c "__import__('calendar').calendar(2016)"
>
> Wouldn't have
>
>    python3 -c "import calendar; calendar(2016)"
>
> been clearer?  and easier to type?  :)
>
> --
> ~Ethan~
>

My understanding is that this kind of construction does not make you as 
much money when you are a consultant, as opposed to a mere programmer or 
similar.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Python-ideas mailing list