Skip to content

Commit 9790a91

Browse files
committed
version 3.1
1 parent 492bfc3 commit 9790a91

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ is generated. The class offers the method "unpack" for deserializing
2020
an array of bytes into a Python object and the method "pack" for
2121
serializing the values into an array of bytes.
2222

23-
[Api Documentation](https://readthedocs.org/projects/python-cstruct/badge/?version=latest)
23+
[Api Documentation](https://python-cstruct.readthedocs.io/en/latest/)
2424

2525
Example
2626
-------

changelog.txt

+8
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,11 @@
135135
### Added
136136

137137
- Flexible array support
138+
139+
### 3.1
140+
141+
2022-09-13
142+
143+
### Added
144+
145+
- Make CStruct/MemCStruct Pickle Friendly

cstruct/__init__.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
__author__ = 'Andrea Bonomi <[email protected]>'
2626
__license__ = 'MIT'
27-
__version__ = '3.0'
27+
__version__ = '3.1'
2828
__date__ = '15 August 2013'
2929

3030
import struct
@@ -132,10 +132,7 @@ def sizeof(type_: str) -> int:
132132

133133

134134
def parse(
135-
__struct__: str,
136-
__cls__: Optional[Type[AbstractCStruct]] = None,
137-
__name__: Optional[str] = None,
138-
**kargs: Dict[str, Any]
135+
__struct__: str, __cls__: Optional[Type[AbstractCStruct]] = None, __name__: Optional[str] = None, **kargs: Dict[str, Any]
139136
) -> Optional[Type[AbstractCStruct]]:
140137
"""
141138
Return a new class mapping a C struct/union definition.

0 commit comments

Comments
 (0)