New
v0.16.0
Added
Language
- Default argument values have been introduced to make it easier to implement optional arguments.
- For example, instead of:
You can write:f = |a, b| a + (b or 42)f = |a, b = 42| a + b
- For example, instead of:
- Wildcard imports have been added to make it easier to work with modules with lots of exported values.
-
from number import * assert_eq pi * 2, tau
-
- When calling a function, arguments can be now be unpacked at the call site.
#418
-
f = |a, b, c| a + b + c x = 1, 2, 3 f x... #: 6
-
- A power operator
^has been added for exponentiation operations, replacing .