Skip to content

Commit c84928a

Browse files
author
FusionSolutions
committed
Upload
1 parent a1c2001 commit c84928a

File tree

9 files changed

+238
-2018
lines changed

9 files changed

+238
-2018
lines changed

benchmark/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def startBatch(i:int, data:Any, counter:int) -> None:
3333
print("Batch {}# started".format(i))
3434
benchmark(pickle.dumps, pickle.loads, data, "pickle", counter, 32)
3535
benchmark(marshal.dumps, marshal.loads, data, "marshal", counter, 32)
36-
for version in range(1, fsPacker.HIGHEST_VERSION + 1):
36+
for version in range(2, fsPacker.HIGHEST_VERSION + 1):
3737
benchmark(
3838
partial(fsPacker.dumps, version=version),
3939
fsPacker.loads,

clinic/clinic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ def parser_body(prototype, *fields, declarations=''):
954954
argname_fmt = 'args[%d]'
955955
declarations = normalize_snippet("""
956956
static const char * const _keywords[] = {{{keywords} NULL}};
957-
static _PyArg_Parser _parser = {{NULL, _keywords, "{name}", 0}};
957+
static _PyArg_Parser _parser = {{NULL, _keywords, "{name}", 0, 0, 0, 0, 0, 0}};
958958
PyObject *argsbuf[%s];
959959
""" % len(converters))
960960
if has_optional_kw:
@@ -973,7 +973,7 @@ def parser_body(prototype, *fields, declarations=''):
973973
argname_fmt = 'fastargs[%d]'
974974
declarations = normalize_snippet("""
975975
static const char * const _keywords[] = {{{keywords} NULL}};
976-
static _PyArg_Parser _parser = {{NULL, _keywords, "{name}", 0}};
976+
static _PyArg_Parser _parser = {{NULL, _keywords, "{name}", 0, 0, 0, 0, 0, 0}};
977977
PyObject *argsbuf[%s];
978978
PyObject * const *fastargs;
979979
Py_ssize_t nargs = PyTuple_GET_SIZE(args);

fsPacker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.2.5"
1+
__version__ = "0.3.0"
22
__doc__ = """
33
FS Message Packer v{}
44
Copyright (C) 2021 Fusion Solutions KFT <contact@fusionsolutions.io>

0 commit comments

Comments
 (0)