Jump to content

Python Library F*ckIt

JakeCowton

https://pypi.python.org/pypi/fuckit

 

This is by far the most superior python library I have ever seen. Having trouble with a specific function that's causing an exception and you just want it to shut the f*ck up? Import and decorate with fuckit

 

"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."

 

Eg - This will obviously not compile

def a_function():  a_function_that_doesnt_exist()a_function()

However, this will

import fuckit@fuckitdef a_function():  a_function_that_doesnt_exist()a_function()

As the PyPi page says,

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 fuckitfuckit(fuckit('some_shitty_module'))# This is definitely going run now.some_shitty_module.some_function()

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

As horrible of an idea as this is, I must admit I am amused. :lol:

Reminds me a bit of turning off all warnings in Perl, although

that's just called "turning off warnings", not nearly as funny.

I wonder if there has ever been a coder desperate enough to actually

use this in production. :D

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
Share on other sites

Link to post
Share on other sites

As horrible of an idea as this is, I must admit I am amused. :lol:

Reminds me a bit of turning off all warnings in Perl, although

that's just called "turning off warnings", not nearly as funny.

I wonder if there has ever been a coder desperate enough to actually

use this in production. :D

 

yeah I totally haven't used this  :unsure:

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×