[Python-3000] example Python code under PEP 3131?

Steve Howell showell30 at yahoo.com
Sun Jun 3 22:18:17 CEST 2007


There has been a lot of interesting debate about PEP
3131, but I think some perspective could be brought to
the table by showing actual code examples.

Can somebody post a few examples of what Python code
would look like under PEP 3131?  Maybe 10-to-15 line
programs that illustrate the following use cases.

  1) Dutch tax lawyer using Dutch identifiers and
English reserved words (def, import, if, while, etc.)

  2) Japanese student using Japanese identifiers and
English reserved words (re, search, match, print,
etc.).

As somebody who has never worked with a language where
I don't know the reserved words, I'm trying to imagine
this type of program:

  1) English student using English identifiers and
Japanese reserved words.

My perspective on this issue is limited by the fact
that I happen to speak English natively.  I often
wonder whether I'd be using Python if the keywords
were in Dutch, and my identifiers weren't allowed to
include certain Anglicisms (say I had to spell "y" as
"ij"), but I was allowed to use English in my strings.
 Then, I wonder how much my decision to use Python
would have been influenced by the ability to use
identifiers in Dutch.  I'm suspecting the answers
would be no and no, even though Dutch is fairly
closely related to English.

I can tell you that it would be a complete showstopper
if Matz had written a Python-like language that
required Japanese reserved words, even if he had
allowed English in other places.  Matz wisely
internationalized the whole language.  (Never mind
that I don't use Ruby much anyway--that has more to do
with other linguistic issues).





       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 


More information about the Python-3000 mailing list