[Python-ideas] Desperate need for enhanced print function

Andrew Barnert abarnert at yahoo.com
Sun Sep 6 01:59:35 CEST 2015

On Sep 5, 2015, at 12:33, Anand Krishnakumar <anandkrishnakumar123 at gmail.com> wrote:
> The work it does is that it casts the variables and it also formats the sentences it is provided with. It is exclusively for beginners.

What do you mean by "casts"? The print function already calls str on each of its arguments. Do you want print_easy to do something different? If so, what? And why do you call it "casting"?

More generally, how do you want the output of print_easy to differ from the output of print, given the same arguments?

If you're hoping it can automatically figure out where to put spaces and where not to, what rule do you want it to use? Obviously it can't be some complicated DWIM AI that figures out whether you're writing English sentences, German sentences, a columnar table, or source code, but maybe there's something simple you can come up with that's still broadly useful. (If you can figure out how to turn that into code, you can put print_easy up on PyPI and let people get some experience using it and increase the chances of getting buy-in to the idea, and even if everyone rejects it as a builtin, you and other students can still use it.)

More information about the Python-ideas mailing list