4 ms·
There is actually a python module that does something like that. It goes to the extreme to keep the program running no matter the error you make, arithmetic err
by Too 12y ago
There is actually a python module that does something like that. It goes to the extreme to keep the program running no matter the error you make, arithmetic error are replaced with random results, missing functions skipped, exceptions silently swallowed etc etc. It is obviously a joke but they could benefit greatly from this feature ;)
- rectangletangle 12y agoFor those who are interested, I'm pretty sure this is what you're referring to https://github.com/ajalt/fuckitpy https://github.com/ajalt/fuckitpy. It's worth looking into for the documentation alone.
- Too 12y agoYES! Thank you FuckIt.py uses state-of-the-art technology to make sure your Python code runs whether it has any right to or not. Some code has an error? Fuck it. FuckIt.py uses a combination of dynamic compilation, Abstract Syntax Tree rewriting, live call stack modification, and love to get rid of all those pesky errors that make programming so hard. Still getting errors? Chain fuckit calls. This module is like violence: if it doesn't work, you just need more of it.
- vidarh 12y agoSounds like the Python equivalent of Visual BASIC's "On Error Resume Next" atrocity. Except you can find "On Error Resume Next" in "production" code. If I ever consider taking contracts doing Visual Basic, the contract will specify that any occurrence of "On Error Resume Next" automatically doubles my daily rate.