Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86834
| From | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] |
| Date | 2015-03-03 23:35 +1300 |
| Message-ID | <cllh33Foe09U1@mid.individual.net> (permalink) |
| References | (12 earlier) <mailman.47.1425311161.13471.python-list@python.org> <clkvq9Fk7tkU1@mid.individual.net> <mailman.3.1425365810.21433.python-list@python.org> <87zj7ud0i1.fsf@elektro.pacujo.net> <mailman.5.1425366849.21433.python-list@python.org> |
Chris Angelico wrote: > And I've seen a number of proposals to build Python with its > *keywords* localized. While there is a reasonable limit to this (for > instance, I wouldn't expect the disassembly of CPython byte-code to > have "STORE_FAST" translated into another language), there's nothing > wrong with programmers being able to write their code in their > languages. Just for fun, I used Google Translate to turn a piece of my Python code into French. Some of the results were rather amusing. For example, it turned "mess" (short for "message") into "désordre", and "but" (short for "button") into "mais". It got "for", "in", "if", "else" and "return" right, though! # Original code def ask(mess, responses = ["OK", "Cancel"], default = 0, cancel = -1, wrap_width = 60, **kwds): box = Dialog(**kwds) d = box.margin lb = wrapped_label(mess, wrap_width) lb.topleft = (d, d) buts = [] for caption in responses: but = Button(caption, action = lambda x = caption: box.dismiss(x)) buts.append(but) brow = Row(buts, spacing = d, equalize = 'w') lb.width = max(lb.width, brow.width) col = Column([lb, brow], spacing = d, align ='r') col.topleft = (d, d) if default is not None: box.enter_response = responses[default] else: box.enter_response = None if cancel is not None: box.cancel_response = responses[cancel] else: box.cancel_response = None box.add(col) box.shrink_wrap() return box.present() # Translated code demander def (désordre, réponses = ["OK", "Annuler"], par défaut = 0, annulent = -1, wrap_width = 60, kwds **): boîte de dialogue = (** kwds) d = box.margin lb = wrapped_label (désordre, wrap_width) lb.topleft = (d, d) BUTS = [] pour la légende dans les réponses: mais = Bouton (légende, action = lambda x = légende: box.dismiss (x)) buts.append (mais) Brow = ROW (buts, l'espacement = d, égalisent = 'W') lb.width = max (lb.width, brow.width) col = Colonne ([lb, le front], l'espacement = d, align = 'r') col.topleft = (d, d) si par défaut ne est pas None: box.enter_response = réponses [défaut] d'autre: box.enter_response = Aucun si annuler ne est pas None: box.cancel_response = réponses [Annuler] d'autre: box.cancel_response = Aucun box.add (col) box.shrink_wrap () retourner box.present ()
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Python Worst Practices Michiel Overtoom <motoom@xs4all.nl> - 2015-02-25 21:58 +0100
Re: Python Worst Practices BartC <bc@freeuk.com> - 2015-02-28 10:28 +0000
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-02-28 12:56 +0200
Re: Python Worst Practices wxjmfauth@gmail.com - 2015-02-28 06:26 -0800
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-28 15:43 +0000
Re: Python Worst Practices Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-01 19:11 +1100
Re: Python Worst Practices wxjmfauth@gmail.com - 2015-03-01 01:07 -0800
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-01 18:16 +0200
Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-02 03:32 +1100
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-01 18:58 +0200
Re: Python Worst Practices Michael Torrie <torriem@gmail.com> - 2015-03-01 10:42 -0700
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-01 21:21 +0200
OT Accents [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-02 09:43 +1100
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-01 16:38 +0000
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-01 19:01 +0200
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-01 17:34 +0000
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-01 19:52 +0200
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-01 18:16 +0000
Re: Python Worst Practices Mario Figueiredo <marfig@gmail.com> - 2015-03-01 19:32 +0100
Re: Python Worst Practices wxjmfauth@gmail.com - 2015-03-01 11:23 -0800
Re: Python Worst Practices Mario Figueiredo <marfig@gmail.com> - 2015-03-01 20:59 +0100
Re: Python Worst Practices Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-03-02 10:40 +1300
Re: Python Worst Practices Roy Smith <roy@panix.com> - 2015-03-01 16:47 -0500
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-01 22:10 +0000
An injury when I was a sbhoolboy; I was bitten by a bat. (was: Python Worst Practices) Ben Finney <ben+python@benfinney.id.au> - 2015-03-02 11:03 +1100
Re: An injury when I was a sbhoolboy; I was bitten by a bat. Ben Finney <ben+python@benfinney.id.au> - 2015-03-02 11:07 +1100
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-02 20:02 +0000
Re: Python Worst Practices Rustom Mody <rustompmody@gmail.com> - 2015-03-01 20:14 -0800
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-02 06:40 +0200
Re: Python Worst Practices alister <alister.nospam.ware@ntlworld.com> - 2015-03-02 08:59 +0000
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-02 14:19 +0200
(Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-03 01:39 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-02 17:30 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mario Figueiredo <marfig@gmail.com> - 2015-03-03 03:51 +0100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Rustom Mody <rustompmody@gmail.com> - 2015-03-02 19:51 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Ben Finney <ben+python@benfinney.id.au> - 2015-03-03 15:10 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mario Figueiredo <marfig@gmail.com> - 2015-03-03 05:32 +0100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Rustom Mody <rustompmody@gmail.com> - 2015-03-03 03:00 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] alister <alister.nospam.ware@ntlworld.com> - 2015-03-03 11:40 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] llanitedave <llanitedave@birdandflower.com> - 2015-03-03 21:43 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-04 15:16 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mario Figueiredo <marfig@gmail.com> - 2015-03-04 14:41 +0100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-04 18:55 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Rustom Mody <rustompmody@gmail.com> - 2015-03-04 06:45 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-05 06:14 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Ethan Furman <ethan@stoneleaf.us> - 2015-03-04 11:28 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-04 21:33 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-05 07:11 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Tim Delaney <timothy.c.delaney@gmail.com> - 2015-03-05 07:40 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Emile van Sebille <emile@fenx.com> - 2015-03-04 14:39 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Tim Delaney <timothy.c.delaney@gmail.com> - 2015-03-05 10:36 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-03-05 20:39 -0500
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-04 20:10 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Rustom Mody <rustompmody@gmail.com> - 2015-03-04 19:38 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-05 07:19 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mario Figueiredo <marfig@gmail.com> - 2015-03-05 10:16 +0100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-05 15:39 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Rustom Mody <rustompmody@gmail.com> - 2015-03-06 00:00 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-06 08:31 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-06 12:06 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] alister <alister.nospam.ware@ntlworld.com> - 2015-03-06 12:34 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-06 12:03 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] llanitedave <llanitedave@birdandflower.com> - 2015-03-06 08:23 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-06 20:15 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Christian Gollwitzer <auriocus@gmx.de> - 2015-03-06 20:26 +0100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steve Hayes <hayesstw@telkomsa.net> - 2015-03-06 14:34 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-05 20:28 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steve Hayes <hayesstw@telkomsa.net> - 2015-03-05 21:45 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-05 22:10 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Chris Angelico <rosuav@gmail.com> - 2015-03-03 02:45 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-03-03 18:40 +1300
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Chris Angelico <rosuav@gmail.com> - 2015-03-03 17:56 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Marko Rauhamaa <marko@pacujo.net> - 2015-03-03 09:05 +0200
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Chris Angelico <rosuav@gmail.com> - 2015-03-03 18:14 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-03 18:38 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] wxjmfauth@gmail.com - 2015-03-03 00:12 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-03-03 23:35 +1300
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] wxjmfauth@gmail.com - 2015-03-02 23:35 -0800
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Joel Goldstick <joel.goldstick@gmail.com> - 2015-03-02 10:54 -0500
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-03-03 11:45 +1300
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Sturla Molden <sturla.molden@gmail.com> - 2015-03-03 00:23 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-03 12:00 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-03-03 19:06 +1300
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-03-03 19:06 +1300
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-03 01:44 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] MRAB <python@mrabarnett.plus.com> - 2015-03-03 02:09 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-03 16:18 +1100
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Sturla Molden <sturla.molden@gmail.com> - 2015-03-03 09:17 +0000
Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices] Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-03-03 15:40 +0100
Re: Python Worst Practices alister <alister.nospam.ware@ntlworld.com> - 2015-03-02 15:32 +0000
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-02 15:45 +0000
Re: Python Worst Practices Manolo Martínez <manolo@austrohungaro.com> - 2015-03-02 13:00 +0100
Uncanny valley of languages Jonas Wielicki <jonas@wielicki.name> - 2015-03-02 11:54 +0100
Re: Uncanny valley of languages Rustom Mody <rustompmody@gmail.com> - 2015-03-02 18:33 -0800
Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-02 03:42 +1100
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-01 16:52 +0000
Re: Python Worst Practices alister <alister.nospam.ware@ntlworld.com> - 2015-03-01 20:16 +0000
Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-02 07:26 +1100
Re: Python Worst Practices alister <alister.nospam.ware@ntlworld.com> - 2015-03-01 21:07 +0000
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-01 22:45 +0200
Re: Python Worst Practices Mario Figueiredo <marfig@gmail.com> - 2015-03-01 22:01 +0100
Re: Python Worst Practices Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-03-01 20:53 -0500
(Still OT) It's not the size of the vocabulary that matters, but what you do with it [was Re: Python Worst Practices] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-02 13:35 +1100
Re: (Still OT) It's not the size of the vocabulary that matters, but what you do with it [was Re: Python Worst Practices] Paul Rubin <no.email@nospam.invalid> - 2015-03-01 19:18 -0800
Re: (Still OT) It's not the size of the vocabulary that matters, but what you do with it [was Re: Python Worst Practices] Chris Angelico <rosuav@gmail.com> - 2015-03-02 14:42 +1100
Re: Python Worst Practices Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-03-02 17:12 +0000
Re: Python Worst Practices sohcahtoa82@gmail.com - 2015-03-02 11:06 -0800
Re: Python Worst Practices Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-03-02 22:21 +0000
Re: Python Worst Practices Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-03-02 23:04 -0500
Re: Python Worst Practices Marko Rauhamaa <marko@pacujo.net> - 2015-03-03 06:32 +0200
Re: Python Worst Practices Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-03-03 11:15 +0000
Re: Python Worst Practices Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-03 15:49 +1100
Re: Python Worst Practices Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-03-03 11:31 +0000
Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-03 07:20 +0000
Re: Python Worst Practices Travis Griggs <travisgriggs@gmail.com> - 2015-03-02 08:25 -0800
Re: Python Worst Practices alister <alister.nospam.ware@ntlworld.com> - 2015-03-02 17:02 +0000
Re: Python Worst Practices BartC <bc@freeuk.com> - 2015-03-01 22:14 +0000
Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-02 06:45 +1100
csiph-web