python

March 10, 2016 ยท View on GitHub

Currently pseudo targets Python3.2+ . It's easy to add Python2.7+ support too, most of the tests/generator and api translation would be shared and we might need some unicode-code-handling pseudo middleware

Python equivalents used for pseudo types and concepts:

PseudoPython
List[T]list
Dictionary[K, V]dict
Set[T]set
Tuple[T1, T2..]tuple
Arraytuple
Intint
Floatfloat
Stringstr
for-loopsfor
classesclasses
methodsmethods
functionsfuncs

niceties

  • Converting map/filter/other enumerable operations to list/dict/set comprehensions depending on return type

  • Converting private methods names to _method_name (in v0.3 private attr and method names would be configurable from pseudo_config.yaml)