Skip to content

piranha-0.6

Pre-release
Pre-release
Compare
Choose a tag to compare
@bluescarni bluescarni released this 01 Nov 13:29
· 878 commits to master since this release

This release introduces a new serialization API which is incompatible with earlier versions of piranha.

Data saved with earlier piranha versions can be ported to the new API as follows:

pt = polynomial(rational,monomial(rational))()
foo = pt.load('myfile.bz2',pyranha.file_compression.bzip2)
pyranha.save_file(foo,'newfile.mpackp.bz2')

This will save the foo polynomial, loaded via the old API, to the file newfile.mpackp.bz2 using the compressed msgpack portable format.