Page MenuHomeSolus

Update sympy to 1.7.1
ClosedPublic

Authored by algent on Feb 24 2021, 6:03 PM.

Details

Summary

Changelog:

  • core
    • There was a regression in 1.7 that meant that __slots__ would not work correctly for Basic instances and they would end up having __dict__. This also made it possible to set arbitrary attributes on Basic instances such as symbols which breaks immutability. This was fixed in 1.7.1 to ensure that Basic instances do not have __dict__ and it is not possible to set attributes on them.
  • series
    • Fixed lazy iteration of series with expr.series(x, n=None) which was broken in the 1.7 release.
  • stats
    • Updated documentation for sympy.stats.sample for seed argument.
    • sympy.stats.sample now has an optional seed argument.
    • Random failures with sympy.stats.sample have now been fixed.

Signed-off-by: Algent Albrahimi <algent@protonmail.com>

Test Plan

Solve all examples from sympy/examples folder using spyder3.

Diff Detail

Repository
R2987 sympy
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

algent created this revision.Feb 24 2021, 6:03 PM
algent requested review of this revision.Feb 24 2021, 6:03 PM
JoshStrobl accepted this revision.Feb 25 2021, 4:02 PM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Feb 25 2021, 4:02 PM
This revision was automatically updated to reflect the committed changes.