Serpent

Latest version: v1.41

Safety actively analyzes 629723 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

1.19

- can now serialize and deserialize from buffer/memoryview types directly
- improved test for \x00 bytes in serialized input data
- fixed some jython and ironpython compatibility issues
- pypy3 added to test suite

1.18

All three (Python, Java, .NET):
- _CRITICAL FIX:_ Encoding/serializing unicode strings is now done by `repr` itself instead of custom code. This solves the issue that previously invalid serialized data which was unparsable, could have been generated from unicode strings.
- Added Serializer.MaximumLevel to avoid too deep recursion resulting in stack overflow errors.
- Serializer.Maximumlevel set to a reasonable value (500, or less if your python's recursionlimit is small)

Python:
- Improved Jython compatibility (built-in support for several Jython types that were previously unserializable such as PyByteArray).
- Better error when invalid serialized data is used (containing 0-bytes for instance)
- Improved serialization performance.

1.17

Release 1.17.
All three (Python, Java, .NET):
- _CRITICAL FIX:_ Encoding/serializing unicode strings is now done by `repr` itself instead of custom code. This solves the issue that previously invalid serialized data which was unparsable, could have been generated from unicode strings.
- Added Serializer.MaximumLevel to avoid too deep recursion resulting in stack overflow errors.

Python:
- Improved Jython compatibility (built-in support for several Jython types that were previously unserializable such as PyByteArray).
- Better error when invalid serialized data is used (containing 0-bytes for instance)

1.16

❗️ _critical fix_: fixed float serialization from str to repr, could cause float precision loss on older Python versions (Python library)
❗️ _critical fix_: fixed errors in complex number parser, it could crash on complex numbers containing float parts (java + .net library)
- supports serializing python enum types (Python 3.4+)

1.15

Python:
- dropped support for python 2.6 and 3.2
- added serpent.tobytes utility method to decode base-64 serpent encoded bytearrays

Java:
- now requires Java7 (jdk 1.7+)
- added Parser.toBytes utility method to decode base-64 serpent encoded bytearrays

.NET/C:
- added Parser.ToBytes utility method to decode base-64 serpent encoded bytearrays

1.14

Added built-in support to serialize the datetime.date type, which was somehow overlooked because the other types in that module were supported already.

This is a python version only release.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.