Skip to content

Currently implemented features

Bernie Pope edited this page Jun 10, 2013 · 23 revisions

Features of Python 3 which are implemented in Blip

This list is constantly changing as new features are implemented.

Statements

  • 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

Expressions

  • 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

Other syntactic classes

  • Default parameters for function definitions
  • Keyword arguments for function calls
  • Positional varargs and keyword varargs

Internal things

  • Maximum stack size calculation
  • Marshalling of code objects to binary format in .pyc files
  • Line number table (lnotab)