fix generation script of Python wrapper

This commit is contained in:
wmayer
2017-11-16 14:30:39 +01:00
parent 35ec477426
commit 5520c1a92f

View File

@@ -426,7 +426,7 @@ PyNumberMethods @self.export.Name@::Number[] = { {
-
+ if (self.export.Sequence):
PySequenceMethods VectorPy::Sequence[] = { {
PySequenceMethods @self.export.Name@::Sequence[] = { {
+ if (self.export.Sequence.sq_length):
sequence_length,
= else:
@@ -471,7 +471,7 @@ PySequenceMethods VectorPy::Sequence[] = { {
-
} };
PyMappingMethods VectorPy::Mapping[] = { {
PyMappingMethods @self.export.Name@::Mapping[] = { {
+ if (self.export.Sequence.sq_length):
sequence_length,
= else: