Other syntax ideas and feature ideas for Python3.0 .
Contents
- declaring parameter and variable types
- script to translate python source from one version to one other
- Different regular expressions modules for bytes and unicode text
- New binary operator symbols d e `
- Optional Static Typing / Adaptation
- Lambda / Anonymous Methods / Closures
- Print as builtin instead of a statement
- ".." Sequences, Custom Infix Operators
- Improved default value logic for Dictionaries
- Better boolean logic
- Disallow calling class methods from instances
- Simplify the syntax for raising exceptions
- Fix implementation of in-place operators
- Remove the distinction between data and non-data decriptors
- Reconsider the inclusion of __slots__ or re-evaluate its implementation
- Extra operators for strings and lists
- Move rarely-used builtins to the library
- Don't remove callable()
- Make API of set, list, dict more consistent
- Make copy and deepcopy built-ins, replace copy methods by __copy__
- Don't remove cmp() and __cmp__
- Builtin Literal for sets
- Make extended function call syntax more iterator friendly
- Require __iter__() for DictMixin instead of keys()
- Raise the level of os module functions
- Parameterize functions that hardcode stdout or stderr
- Module interface
- Stronger Distinction between Tuples & Lists
- Unifying generators
- Replace Integer Masks with Sets
- Replace abs() with | |
- Require Parens for Tuple Definition
- Remove [<listcomp>] syntax in favor of list(<genexp>) syntax
- Move builtins to be methods on the types they apply to:
- Default to assign class object rather than class reference
- Unicode identifier
- Remove support for complex numbers
- Reserve some keywords for futur extensions
- Simplify the filename search when importing
- Increment operator
declaring parameter and variable types
It may be easier, reduce bugs, offers intelli-sense like in Microsoft Visual Studio. All of that could reduce development-time.
script to translate python source from one version to one other
does any script (will) exists, to translate code, form python 2.3 to python 2.4 or from python 2.3 to 2.4?
