[Python-Dev] Needing help to change the grammar

Glenn Linderman v+python at g.nevcal.com
Mon Apr 13 00:11:26 CEST 2009


On approximately 4/12/2009 2:41 PM, came the following characters from 
the keyboard of Tony Nelson:
> At 16:30 -0400 04/12/2009, Terry Reedy wrote:
>  ...
>>  Source in .pyb (python-brazil) is parsed with with your new parser,
>  ...
> 
> In case anyone ever does this again, I suggest that the extension be the
> language and optionally country code:
> 
>     .py_pt  or  .py_pt_BR


Wouldn't that be a good idea for this implementation too?  It sounds 
like it is not-yet-released, as it is also not-yet-bug-free.

And actually, wouldn't it be nice if international keywords could be 
accepted as alternates if one just said

import pt_BR

An implementation along that line, except for things like reversing the 
order of "not" and "is", would allow the next national language 
customization to be done by just recoding the pt_BR module, renaming to 
pt_it or pt_fr or pt_no and translating a bunch of strings, no?

Probably it would be sufficient to allow for one language at a time, per 
module.

-- 
Glenn -- http://nevcal.com/
===========================
A protocol is complete when there is nothing left to remove.
-- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking


More information about the Python-Dev mailing list