Skip to content

Commit

Permalink
bump-ver: 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
litlighilit committed Sep 29, 2024
1 parent d21361c commit 098a36b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions changelogs/changelog_0_9_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

# v0.9.3 - 2024-09-30

## Breaks
- `PyComplex[T]` -> `PyTComplex[T]`; PyComplex is now non-generics (like CPython's `Py_complex`)

## Bug fixes
- Lib/pathlib: argument order of Path.{sym,hard}link_to was reversed
- os.utime not compile on x86_64 macos

### math
- expm1, log1p was inaccurate for arg near 0
- dist's signature was wrong ( used to be `func [F: SomeFloat](x, y: F): F` )
- `degrees` was typed as `degress`
- log1p, expm1 not accurate for arg near 0;


## Fixes for inconsistence with Python
- math.{floor,ceil,trunc} now return int over float
- str for complex(N, nan) was "(Nnanj)" (shall be "nanj") and str(complex) returns something in form of `Complex(re: A, im: B)`
- Lib/math's functions raises exception as Python does when math error occurs
- Lib/math:
- dist's signature wrongly used that of hypot
- `degrees` was typed as degress

## Feature additions
- pow for complex type


### math
- supports objc (not test yet)
- supports compiletime (nimvm)
- for JS:
- math
- gamma, lgamma, erf, erfc are supported
- ldexp is more accurate

- math:
- cbrt
- sumprod, dist, hypot
- nextafter, ulp
- ... (all APIs in CPython's math)

- pathlib:
- `/=` for Path


## Patches for Nim-compatibility
2 changes: 1 addition & 1 deletion src/pylib/version.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func asVersion*(v: (int, int, int)): string = asVersion(v[0], v[1], v[2])
const
Major* = 0
Minor* = 9
Patch* = 2
Patch* = 3
Version* = asVersion(Major, Minor, Patch)

ReleaseLevel* = "alpha"
Expand Down

0 comments on commit 098a36b

Please sign in to comment.