Skip to main content

literal_strings_few_large_python

No overview available.

def literal_strings_few_large_python(
count: integer,
size: integer
) - > string

Generates a Python source code string containing a small number of very large string literals. This is typically used for stress-testing parsers or benchmarking memory allocation during compilation.

Parameters

NameTypeDescription
countintegerThe number of large string variables to generate in the output script.
sizeintegerThe length in characters for each generated string literal.

Returns

TypeDescription
stringA valid Python script containing the generated large string assignments.