
On 1 April 2016 at 19:47, Mark Lawrence via Python-ideas <python-ideas@python.org> wrote:
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~
It would, but python3 -c "import calendar; calendar.calendar(2016)" not so much easier to type. The reason, however is that I usually think of "I have the right to use one single expression when using python -c" and not "a single line'
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.
Or that ^ :-) Anyway - back to the thread - it does not seen a bad idea for me at all.
-- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.
Mark Lawrence
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/