diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/README.md | 2 | ||||
-rw-r--r-- | python/google/protobuf/pyext/message.cc | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/python/README.md b/python/README.md index 57acfd94..8f3db785 100644 --- a/python/README.md +++ b/python/README.md @@ -92,7 +92,7 @@ Installation error: "sem_init: Resource temporarily unavailable". This appears to be a bug either in Cygwin or in Python: http://www.cygwin.com/ml/cygwin/2005-07/msg01378.html - We do not know if or when it might me fixed. We also do not know + We do not know if or when it might be fixed. We also do not know how likely it is that this bug will affect users in practice. 5) Install: diff --git a/python/google/protobuf/pyext/message.cc b/python/google/protobuf/pyext/message.cc index 5967a587..4f3abc84 100644 --- a/python/google/protobuf/pyext/message.cc +++ b/python/google/protobuf/pyext/message.cc @@ -1994,7 +1994,11 @@ static PyObject* CopyFrom(CMessage* self, PyObject* arg) { // get OOM errors. The protobuf APIs do not provide any tools for processing // protobufs in chunks. If you have protos this big you should break them up if // it is at all convenient to do so. +#ifdef PROTOBUF_PYTHON_ALLOW_OVERSIZE_PROTOS +static bool allow_oversize_protos = true; +#else static bool allow_oversize_protos = false; +#endif // Provide a method in the module to set allow_oversize_protos to a boolean // value. This method returns the newly value of allow_oversize_protos. |