(Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

Marko Rauhamaa marko at pacujo.net
Fri Mar 6 13:15:42 EST 2015


llanitedave <llanitedave at birdandflower.com>:

> It's obvious that's what's needed here is a PEP requiring that the
> International Phonetic Alphabet be used for all Python identifiers and
> keywords.

You're onto something:

========================================================================
#!/ˈjuːzəɹ/bɪn/ɛnv ˈpaɪˌθɑːn3
# -*- ˈkoʊdɪŋ: ˌjuːˌtiːˌɛf-ˈ8 -*-

ˈɪmpoɹt loʊˈkæl

dɛf meɪn():
    tɹaɪ:
        ɹeɪz ˈVæljuːˈƐɹəɹ()
    ɪkˈsɛpt ˈVæljuːˈƐɹəɹ:
        tɹaɪ:
            ɹeɪz ˈAɪOʊˈƐɹəɹ()
        ˈfaɪnli:
            ɹeɪz

ɪf __neɪm__ == "__meɪn__":
    tɹaɪ:
        meɪn()
    ɪkˈsɛpt ˈVæljuːˈƐɹəɹ:
        pɹɪnt("Həˈloʊ")
========================================================================


Marko



More information about the Python-list mailing list