Terry J. Reedy added the comment:
The 'while pickling' part of the message is specific to running in IDLE, as
Serhiy explained, but the recursion error itself is due to writing a program
with infinite recursion. The program switches the last two items back and
forth indefinitely. When run
Serhiy Storchaka added the comment:
It is because you run the code in IDLE.
print(tempList) converts argument to string and write it to sys.stdout. In IDLE
sys.stdout is a proxy object which uses RPC to communicate with the IDLE
process which should insert the written text in the console tex
New submission from Violet Godfrey :
I accidentally created an infinite recursion. The error referenced pickling but
I did not import pickle.
To reproduce:
def permute(inputList):
'''permute(inputList) -> list
returns list of all permutations of inputList
CURRENTLY DOESN'T ACTUAL