TW added the comment:
Eryk, thanks much for your detailled and clear explaining!
Can confirm that using os.write makes it raise the RecursionError where I
expected it to be. Also print() raising the RecursionError explains the
behaviour I have seen.
Sadly, this also shows that handling
New submission from TW :
user@development:~$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
def recurse(n):
print(n)
try:
recurse(n+1)