Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import inspect
- def search(code=None, id=None, bobo=None):
- frame = inspect.currentframe()
- _, _, _, values = inspect.getargvalues(frame)
- one_is_set = False
- for key in ['code', 'id', 'bobo']:
- if values[key] != None:
- if one_is_set == True:
- print("fuck this")
- return
- else:
- one_is_set = True
- if one_is_set == False:
- print("fuck that")
- return
- print(values)
- search(code="41", id="42")
- search(bobo="5")
- search()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement