|
|
[Python Home] [PEP Index] [PEP Source] |
| PEP: | 4872 |
|---|---|
| Title: | Vowel-less Python |
| Version: | 20090723-2 |
| Last-Modified: | 2009-07-23 |
| Author: | Kyle McFarland <tfkyle at gmail.com> |
| Status: | Draft |
| Type: | Standards Track |
| Content-Type: | text/x-rst |
| Created: | 2009-07-23 |
This PEP proposes removing vowels from most parts of python syntax and package/module/class/function names in the stdlib.
The next generation of python developers will do much of their programming from mobile phones, and distribution of the code they create will be done via. SMS messages for the most part (they will even submit the code they want to run to servers in the cloud via. SMS messages).
Due to:
Python will need to evolve into a form where code has to take up the least space in bytes as possible. Removing vowels to shorten words is a common method and a lot of the time still leaves you with something that's atleast partially readable, there could be more efficient ways of shortening average python code but this PEP will propose the obvious method mentioned above.
The following syntax elements are proposed to change:
indentation will be forced to 1 space per indentation level, pylint will automatically convert from 4-space indentation though.
- keywords:
- assert will become assrt
- break will become brk
- class will become cls, classmethods and __new__ will switch to kls
- continue will become cnt
- def will become df
- except will become excpt
- TODO: ....
- from will become frm
- import will become imprt
- for will become fr
- TODO: ...
The following builtins, extension modules and stdlib packages/modules are proposed to change:
- print will become prnt
- ...
2to3 will be adapted to translate old code to the new shortened format, this should handle most existing code.
This PEP is a joke, I wrote it out of boredom :)