Answers for "how to destroy a function in python"

0

delete function python

"""
Since foo is a global, you can delete it from the global definitions:
"""

def delete_func(func):
    del globals()[func.func_name]
Posted by: Guest on October-20-2021

Code answers related to "how to destroy a function in python"

Python Answers by Framework

Browse Popular Code Answers by Language