[Python-ideas] bool.from_config_str()

Pavol Lisy pavol.lisy at gmail.com
Mon Jun 13 12:12:30 EDT 2016


2016-06-13 8:21 GMT+02:00, Steven D'Aprano <steve at pearwood.info>:
> On Mon, Jun 13, 2016 at 02:52:07PM +1000, Ben Finney wrote:
>
>> (I am also a bit baffled to see some respondents in this thread
>> expressing the notion there is no consensus on what input text should
>> convert to a Boolean. The ‘configparser’ module is an obvious touchstone
>> here for other Python behaviour, IMO.)
>
> To be honest, I had forgotten about configparser. But I stand by my
> earlier comments: in this 21st century globally-connected world, to
> expect all users to write "yes" in a config file when they mean "oui" or
> "ja" is unacceptable.

Philosophical question which you are bringing is interesting! :)

Are keywords: "for, while, if, try, catch" good enough for
globally-connected world in 21st century?

Would be better or worse for python ecosystem to have possibility to
write for example:

#!language:fr

pour i en gamme(3):
    publier(i)

Maybe in second fourth of 21 century, when we will have intelligent
editors able automatically translate this to national (or
international) python it could be strong idea?

Or it's better to keep this simple in international/english mode? Not
to build babel tower?


More information about the Python-ideas mailing list