Not only is this a nice analysis on why people sometimes avoid recursion in Python vs. better reasons to avoid recursion, it also uses integer's bit_length() field!
Ned Batchelder: Recursive dogma
Questioner: i have a problem with a little recursive function. Questioner: i create a list recursive of length 2**30 but i get a memory problem. Naysayer: recursion in Python is almost always bad news. Questioner: i have probs with high memory because i create too many too large list when i ...
no plus ones
Add a comment...