[Python-ideas] Shrink recursion error tracebacks (was: Have REPL print less by default)

Ethan Furman ethan at stoneleaf.us
Thu Apr 21 16:15:57 EDT 2016

On 04/21/2016 12:35 PM, Joseph Martinot-Lagarde wrote:

>> No problem with that. In my experience, most RecursionErrors come from
>> *accidental* recursion, which is straight-forwardly infinite and
>> usually involves a single function.
> It can come very easily with __getattr__, if __getattr__ itself uses an
> undefined attribute. This recursion is usually not what the user wanted! :)

True, but I'm pretty sure that falls in to the *accidental recursion* 
category.  ;)


More information about the Python-ideas mailing list