-
Notifications
You must be signed in to change notification settings - Fork 6
Currently implemented features
Bernie Pope edited this page Jun 10, 2013
·
23 revisions
This list is constantly changing as new features are implemented.
- Assignment statements
- Augmented assignment statements
-
return
statements -
pass
statements - Statement expressions
- Conditional statements (
if-then-else
etcetera) -
while
loops -
for
loops - Function definitions (
def
) -
class
definitions -
assert
statements - Exception handlers (
try-except-else-finally
) -
import
statements -
from import
statements -
break
statements (but not checked if they are inside a loop) -
nonlocal
statements -
global
statements - Decorators on functions and classes
-
continue
statements -
del
statements -
with
statements -
raise
statements
- Variables
- String literals
- Bytestring literals
- Integer literals
- Floating point literals
- Imaginary number literals
- Boolean literals
None
- Parenthesised expressions
- Conditional expressions
- Tuple literals
- List literals
- Set literals
- Dictionary literals
- Function calls
- Subscripts
- Slices
- Binary operators (including comparison operator chaining)
- Unary operators
-
lambda
functions - Ellipsis
...
- List comprehensions
- Set comprehensions
- Dictionary comprehensions
- Generator comprehensions
-
yield
expressions
- Default parameters for function definitions
- Keyword arguments for function calls
- Positional varargs and keyword varargs
- Maximum stack size calculation
- Marshalling of code objects to binary format in
.pyc
files - Line number table (
lnotab
)