From aafc5dc9500f01c643e3ebfe1b7ea851bd536d92 Mon Sep 17 00:00:00 2001 From: Richard A Hofer Date: Mon, 7 Dec 2020 19:20:26 -0500 Subject: [PATCH] Set default initialSize for Builder to 0 (#6310) * Set default initialSize for Builder to 0 * Change default size of builder to 1024. This matches what the C++ and Java versions do. --- python/flatbuffers/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/flatbuffers/builder.py b/python/flatbuffers/builder.py index f9448b0b..c5978bdd 100644 --- a/python/flatbuffers/builder.py +++ b/python/flatbuffers/builder.py @@ -113,7 +113,7 @@ class Builder(object): MAX_BUFFER_SIZE = 2**31 ## @endcond - def __init__(self, initialSize): + def __init__(self, initialSize=1024): """Initializes a Builder of size `initial_size`. The internal buffer is grown as needed. -- GitLab