Revision 2 as of 2005-01-03 01:45:37

Clear message

Other syntax ideas and feature ideas for Python 3.0.

TableOfContents()

Optional Static Typing / Adaptation

Lambda / Anonymous Methods / Closures

Suggested syntaxes:

".." Sequences, Custom Infix Operators

Improved default value logic for Dictionaries

Better boolean logic

The and/or operators should only return boolean values. This makes their use less error-prone, less prone to abuse, and more closely match other languages. Also, it will simplify the underlying bytecode which currently inserts many POP_TOP instructions to complete conditionals. The need to insert these instructions also results in extra code paths and jump instructions. Overall, the language will become more intuitive, more reliable, simpler, and faster.

Disallow calling class methods from instances

Calling with a instance is almost never what you want. When it is done, the results are not especially readable the code suggests that it is doing something that it isn't: {'a'=1}.fromkeys('poof') # what happened to 'a'?

Simplify the syntax for raising exceptions

Unable to edit the page? See the FrontPage for instructions.