[issue44049] Use C99 Variable-length array if possible

Pablo Galindo Salgado report at bugs.python.org
Wed May 5 08:59:10 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

Thanks for the suggestion! Unfortunately I am not very convinced since we already have the self imposed limitation for the maximum size of the string (this is to limit the execution time and memory) so there is no point of allowing bigger buffers. Also consider that this may happen on threads where the stack is much much smaller, so we cannot allow arbitrary length arrays.

Also, on a minor note, we use a restricted set of c99 supported by all compilers so we would need to check if this is supported in all of them.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44049>
_______________________________________


More information about the Python-bugs-list mailing list