A new Nougaro version is out, including two new sorting algorithms and crashfixes!
Added
- Added two modes to the
sort
built-in function:slow
andslow-verbose
. Both are slowsort implementations, the former is silent and the latter prints how much elements are already sorted. - Added one other mode to the
sort
built-in function:bogo
. It is a bogosort implementation. - Added
math.gcd
, that takes exactly two integer arguments and return their gcd.
Changed
- Any value can now be passed as
assert
error message (and will be converted to str) $
and the following identifier can now be spaced ($ id
is now valid)paraghraphs
argument of functionlorem.ipsum
is now optional and defaults to 1- Version ID has been increased to
11
.
Fixed
- Fixed a crash in
math.log
on base=1 - Fixed crashes in
math.log2
(I forgot to update this function when fixing the same crashes in 0.18.0-beta) - Fixed a crash on
int(float("nan"))
andint(float("inf"))
. - Fixed a bug where identifiers after
$
could start with digits - Optimised asserts a little bit
- Better error messages
- Stalinsort no longer sorts the list in-place (it returns a “““sorted””” copy of the list instead of “““sorting””” the original list)
- Miraclesort and panicsort now also return a copy of the original list (if they return something…)
- Updated error messages when method in not defined in python-written modules (does not change anything to public API)
Build scripts
- Build scripts now copy
CHANGELOG.md
. build.bat
is now more verbose.
Calculator
Fixed
- Fixed a crash with
log
on base=1