Serhiy Storchaka <[email protected]> added the comment:
Funny. But the output is not random. You can generate the sequence of letters
by the following simple loop:
s = ''
for i in range(n):
s = f'a{s}b{s}'
The length of this sequence is 2*(2**n-1). Finally, your code will raise a
non-silenced RecursiveError, but it will just take some time (for printing
around 2**1000 letters).
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42951>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com