Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
raise test
class ArgsNumException(Exception):
def __init__(self,value):
self.value = value
def __str__(self):
return repr(self.value)
def test(*args,**kwargs):
if len(args) != 3:
raise ArgsNumException(len(args))
test(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment