Having problems with your Python code? Try FuckIt.py by ajalt:
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 makes programming so hard. All functionality is provided through the fuckit module: add import fuckit to the top of your script, then you can use fuckit in a number of ways e.g. as a replacement for import when a module has errors — just change import some_shitty_module to fuckit('some_shitty_module'):
import fuckit #import some_shitty_module fuckit('some_shitty_module') some_shitty_module.some_function()
Still getting errors? Chain fuckit calls. This module is like violence: if it doesn’t work, you just need more of it:
from fuckit import fuckit fuckit(fuckit('some_shitty_module')) # This is definitely going to run now. some_shitty_module.some_function()
You can also use fuckit as a decorator and a context manager; plus check out its extremely permissive public license.
(also see: FuckItJS, the Javascript Error Steamroller)
One thought